visual tests: skip visual tests when test data are not present

This commit is contained in:
Jiri Drbalek 2015-05-22 17:02:52 +00:00
parent 9c9a7a06a0
commit c349412056

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