From 43550fa8a878b955a4d09369bdd414ec2e806d57 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 3 Jul 2014 12:40:36 +0200 Subject: [PATCH] Fix problem with first-time test and testno=1 --- test/run_pazpar2.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/run_pazpar2.sh b/test/run_pazpar2.sh index ec9932d..c95775f 100755 --- a/test/run_pazpar2.sh +++ b/test/run_pazpar2.sh @@ -145,7 +145,7 @@ else sec=1 maxrounds=10 fi -LEVELS=loglevel,fatal,warn,log,debug,notime,zoom,zoomdetails +LEVELS=loglevel,fatal,warn,log,debug,zoom,zoomdetails if test -n "$PAZPAR2_USE_VALGRIND"; then valgrind --num-callers=30 --show-reachable=yes --leak-check=full --log-file=$VALGRINDLOG ../src/pazpar2 -v $LEVELS -X -l ${PREFIX}_pazpar2.log -f ${CFG} >${PREFIX}_extra_pazpar2.log 2>&1 & PP2PID=$! @@ -216,10 +216,11 @@ for f in `cat ${srcdir}/${URLS}`; do fi fi else - if test $rounds -eq 0; then + if test $testno -eq 1 -o $rounds -eq 0; then echo "${PREFIX} $testno: Making for the first time" mv $OUT2 $OUT1 code=1 + rounds=0 fi fi if test $rounds -gt 0; then -- 1.7.10.4