2 . tests/vmconfig/default
3 [ ! -f tests/vmconfig/$1 ] || . tests/vmconfig/$1
5 if [ -z "$TEST_SUITE" ]
7 echo "TEST_SUITE is undefined"
12 WORKDIR=$(cd $CURDIR/..; pwd)
14 # Take jenkins WORKSPACE value is running jenkins
16 export WORKSPACE=${WORKSPACE:-$WORKDIR}
19 ssh root@$HOST "$TEST_HOME/scripts/phpunit.sh $TEST_SUITE"
22 [ -d "$WORKSPACE/reports" ] || mkdir $WORKSPACE/reports
23 rsync -av root@$HOST:/var/log/ $WORKSPACE/reports/
25 # Exit with test result
26 exit $(ssh root@$HOST cat /root/phpunit.exitcode)