visual tests: skip visual tests when test data are not present
This commit is contained in:
parent
9c9a7a06a0
commit
c349412056
1 changed files with 9 additions and 5 deletions
12
test/run
12
test/run
|
@ -24,11 +24,15 @@ if [ -n "$(find test/standalone/ -maxdepth 1 -name '*-bin' -print -quit)" ]; the
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
run_substep "Running visual tests..."
|
if [ -d "test/data-visual/styles" ]; then
|
||||||
if [ -z "$JOBS" ]; then
|
run_substep "Running visual tests..."
|
||||||
|
if [ -z "$JOBS" ]; then
|
||||||
JOBS=1
|
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
|
fi
|
||||||
./test/visual/run -j $JOBS
|
|
||||||
failures=$((failures+$?))
|
|
||||||
|
|
||||||
exit $failures
|
exit $failures
|
||||||
|
|
Loading…
Add table
Reference in a new issue