Merge pull request #2845 from mapycz/improve-visual-test-5

visual tests: skip visual tests when test data are not present
This commit is contained in:
Dane Springmeyer 2015-05-22 09:48:57 -07:00
commit 0ac8389622

View file

@ -24,11 +24,15 @@ if [ -n "$(find test/standalone/ -maxdepth 1 -name '*-bin' -print -quit)" ]; the
done
fi
run_substep "Running visual tests..."
if [ -z "$JOBS" ]; then
JOBS=1
if [ -d "test/data-visual/styles" ]; then
run_substep "Running visual tests..."
if [ -z "$JOBS" ]; then
JOBS=1
fi
./test/visual/run -j $JOBS
failures=$((failures+$?))
else
echo "Notice: Skipping visual tests, the visual tests data are not present under the standard directory \"test/data-visual\"."
fi
./test/visual/run -j $JOBS
failures=$((failures+$?))
exit $failures