From 9d73b9c97d06d086de95de82da142fc0a54441d6 Mon Sep 17 00:00:00 2001 From: Roland Mas Date: Sun, 23 Sep 2012 10:06:23 +0000 Subject: [PATCH] Backport from trunk: debugging in testsuite --- tests/scripts/phpunit.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/scripts/phpunit.sh b/tests/scripts/phpunit.sh index 650678c..4d0d188 100755 --- a/tests/scripts/phpunit.sh +++ b/tests/scripts/phpunit.sh @@ -47,11 +47,18 @@ define('DB_PASSWORD', '@@FFDB_PASS@@'); define('DB_INIT_CMD', "$FORGE_HOME/tests/func/db_reload.sh >>/var/log/db_reload_selenium.log 2>&1"); // Cronjob wrapper script location +print "Looking for forge_run_job script...\n"; if (is_executable ("$FORGE_HOME/bin/forge_run_job")) { + print "Found in $FORGE_HOME/bin/\n"; define('RUN_JOB_PATH', "$FORGE_HOME/bin/"); } elseif (is_executable ("$FORGE_HOME/src/utils/forge_run_job")) { + print "Found in $FORGE_HOME/src/utils/\n"; define('RUN_JOB_PATH', "$FORGE_HOME/src/utils/"); -} +} else { + print "Neither $FORGE_HOME/bin/forge_run_job nor $FORGE_HOME/src/utils/forge_run_job seem to be executable, strange.\n"; + system ("find $FORGE_HOME"); + exit(1); +} // this should be an existing user of the forge together with its password // (the password should be different from 'myadmin') -- 2.1.4