From bf2284d10a3d1ab781a867b8c9f19597b64485c3 Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: Dec 29 2013 11:27:24 +0000 Subject: changed php-mysql55 test to only run on C5 --- diff --git a/tests/p_php/25-php-mysql55-test.sh b/tests/p_php/25-php-mysql55-test.sh index a5cc97f..d655617 100755 --- a/tests/p_php/25-php-mysql55-test.sh +++ b/tests/p_php/25-php-mysql55-test.sh @@ -3,18 +3,20 @@ # Author: Christoph Galuschka # reusing the script from LAMP-Tests -t_Log "Running $0 - php-cli basic interaction with mysql test." +t_Log "Running $0 - php-cli basic interaction with mysql55 test." +if [ $centos_ver != 5 ] +then + t_Log "This is not a C5-system - skipping" + exit 0 +fi # Install php-mysql-module t_InstallPackage php-mysql # we need a working and running mysql server #starting with 5.10 we need to reflect mysql55 -if [ $centos_ver = 5 ] -then - t_ServiceControl mysqld stop - t_ServiceControl mysql55-mysqld start >/dev/null 2>&1 -fi +t_ServiceControl mysqld stop +t_ServiceControl mysql55-mysqld start >/dev/null 2>&1 #create a little DB to use CREATE='/var/tmp/mysql-php-QA.sql'