Issue #3409733 by james.williams, fjgarlin, poker10: Test-only job does not detect failures correctly
parent
fa1b1ef0e1
commit
0ac3d2a036
|
@ -21,8 +21,12 @@ done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "2️⃣ Running test changes for this branch"
|
echo "2️⃣ Running test changes for this branch"
|
||||||
|
EXIT_CODE=0
|
||||||
if [[ $(git diff ${BASELINE} --name-only|grep -E "Test.php$") ]]; then
|
if [[ $(git diff ${BASELINE} --name-only|grep -E "Test.php$") ]]; then
|
||||||
for test in `git diff ${BASELINE} --name-only|grep -E "Test.php$"`; do
|
for test in `git diff ${BASELINE} --name-only|grep -E "Test.php$"`; do
|
||||||
sudo SIMPLETEST_BASE_URL="$SIMPLETEST_BASE_URL" SIMPLETEST_DB="$SIMPLETEST_DB" MINK_DRIVER_ARGS_WEBDRIVER="$MINK_DRIVER_ARGS_WEBDRIVER" -u www-data ./vendor/bin/phpunit -c core $test --log-junit=./sites/default/files/simpletest/phpunit-`echo $test|sed 's/\//_/g' `.xml;
|
sudo SIMPLETEST_BASE_URL="$SIMPLETEST_BASE_URL" SIMPLETEST_DB="$SIMPLETEST_DB" MINK_DRIVER_ARGS_WEBDRIVER="$MINK_DRIVER_ARGS_WEBDRIVER" -u www-data ./vendor/bin/phpunit -c core $test --log-junit=./sites/default/files/simpletest/phpunit-`echo $test|sed 's/\//_/g' `.xml || EXIT_CODE=$?;
|
||||||
done;
|
done;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Exiting with EXIT_CODE=$EXIT_CODE"
|
||||||
|
exit $EXIT_CODE
|
||||||
|
|
Loading…
Reference in New Issue