From 43f7a1971573de64a5334ca639234735b83b66bb Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Tue, 27 Apr 2010 10:43:02 +0000 Subject: [PATCH] allow to override the test on the command line: env irspy_test=Quick ./irspy-update.sh --- bin/irspy-update.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/irspy-update.sh b/bin/irspy-update.sh index 5de406d..8c2554d 100755 --- a/bin/irspy-update.sh +++ b/bin/irspy-update.sh @@ -9,8 +9,7 @@ home=/usr/local/src/git cd $home/irspy/bin || exit 2 logdir=../tmp lockfile=../tmp/irspy-update.lock -#test=Quick -test=Main +: ${irspy_test=Main} if [ -f $lockfile ]; then pid=`cat $lockfile` @@ -25,7 +24,7 @@ weekday=`date '+%w'` for i in 0 1 2 3 4 5 6 do logfile=$logdir/irspy-mod-$i.log.$weekday - YAZ_LOG=irspy,irspy_test,irspy_task nice -10 time perl -I../lib irspy.pl -n 50 -d -M 3500 -a -t $test -m 7,$i localhost:8018/IR-Explain---1 > $logfile 2>&1 + YAZ_LOG=irspy,irspy_test,irspy_task nice -10 time perl -I../lib irspy.pl -n 50 -d -M 3500 -a -t $irspy_test -m 7,$i localhost:8018/IR-Explain---1 > $logfile 2>&1 gzip -f $logfile done -- 1.7.10.4