From c349412056dacf586f264ab3555b93e2227bf25b Mon Sep 17 00:00:00 2001 From: Jiri Drbalek Date: Fri, 22 May 2015 17:02:52 +0000 Subject: [PATCH] visual tests: skip visual tests when test data are not present --- test/run | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/test/run b/test/run index 43f5ced7c..f19e923c1 100755 --- a/test/run +++ b/test/run @@ -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