diff --git a/tests/p_vconfig/0_install_vconfig.sh b/tests/p_vconfig/0_install_vconfig.sh index f028004..aa5dbc5 100755 --- a/tests/p_vconfig/0_install_vconfig.sh +++ b/tests/p_vconfig/0_install_vconfig.sh @@ -1,10 +1,10 @@ #!/bin/bash # Author: Christoph Galuschka -if ([ $centos_ver = 5 ] || [ $centos_ver = 6 ]) +if [ $centos_ver -lt 7 ] then # Install vconfig t_InstallPackage vconfig else - t_Log 'This is only supported on C5 and C6, skipping' + t_Log 'vconfig is only supported on C5 and C6, skipping' fi diff --git a/tests/p_vconfig/10_test_vconfig.sh b/tests/p_vconfig/10_test_vconfig.sh index f1e8c64..7c244e4 100755 --- a/tests/p_vconfig/10_test_vconfig.sh +++ b/tests/p_vconfig/10_test_vconfig.sh @@ -5,7 +5,7 @@ t_Log "Running $0 - create VLAN IF, assign IP on VLAN IF and tear down VLAN IF test" ret_val=0 -if ([ $centos_ver = 5 ] || [ $centos_ver = 6 ]) +if [ $centos_ver -lt 7 ] then # create VLAN-IF 10 on eth0 vconfig add eth0 10 @@ -50,7 +50,7 @@ then t_Log "Removing of VLAN IF worked" fi else - t_Log 'This is only supported on C5 and C6, skipping' + t_Log 'vconfig is only supported on C5 and C6, skipping' fi t_CheckExitStatus $ret_val