From 673c92bc3de562eb5ff22ebd1834098580a4f909 Mon Sep 17 00:00:00 2001 From: 843723683 Date: Jul 30 2019 14:52:50 +0000 Subject: Valac is not built any other versions except for CentOS7 --- diff --git a/tests/p_valac/0-install_valac.sh b/tests/p_valac/0-install_valac.sh index 3bcc265..85db198 100755 --- a/tests/p_valac/0-install_valac.sh +++ b/tests/p_valac/0-install_valac.sh @@ -1,6 +1,11 @@ #!/bin/bash # Author: Lz +if [ "$centos_ver" -ne "7" ];then + t_Log "Package not included in CentOS $centos_ver => SKIP" + exit 0 +fi + t_Log "$0 - installing valac" t_InstallPackage vala diff --git a/tests/p_valac/10-test_valac.sh b/tests/p_valac/10-test_valac.sh index 2cd673c..b38b498 100755 --- a/tests/p_valac/10-test_valac.sh +++ b/tests/p_valac/10-test_valac.sh @@ -2,13 +2,13 @@ # Author: Lz -#t_Log "Running $0 - Testing valac by running it with a basic file" - -if [ "$centos_ver" -eq "8" ]; then - t_Log "vala is not available in el8 => SKIP" - exit 0 +if [ "$centos_ver" -ne "7" ];then + t_Log "Package not included in CentOS $centos_ver => SKIP" + exit 0 fi +t_Log "Running $0 - Testing valac by running it with a basic file" + # creating source code FILE='/var/tmp/valac-test.vala' EXE='/var/tmp/valac-test'