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 <lz843723683@163.com>
 
+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 <Lz843723683@163.com>
 
-#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'