From e97d4090984c10e7e754e8007efe7d3c65ff35ca Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 11 Oct 2006 16:42:50 +0000 Subject: [PATCH] Use check() return value. --- bin/irspy.pl | 4 ++-- web/htdocs/details/check.mc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/irspy.pl b/bin/irspy.pl index 11245ff..afdb43a 100755 --- a/bin/irspy.pl +++ b/bin/irspy.pl @@ -1,6 +1,6 @@ #!/usr/bin/perl -w -# $Id: irspy.pl,v 1.11 2006-10-09 07:29:43 mike Exp $ +# $Id: irspy.pl,v 1.12 2006-10-11 16:43:32 mike Exp $ # # Run like this: # YAZ_LOG=irspy,irspy_test,irspy_debug,irspy_event perl -I ../lib irspy.pl -t Main localhost:3313/IR-Explain---1 bagel.indexdata.dk/gils z3950.loc.gov:7090/Voyager bagel.indexdata.dk:210/marc @@ -28,5 +28,5 @@ my $res = $spy->check($opts{t}); if ($res == 0) { print "All tests were run\n"; } else { - print "Some tests were skipped\n"; + print "$res tests were skipped\n"; } diff --git a/web/htdocs/details/check.mc b/web/htdocs/details/check.mc index dd6807c..5757215 100644 --- a/web/htdocs/details/check.mc +++ b/web/htdocs/details/check.mc @@ -1,4 +1,4 @@ -%# $Id: check.mc,v 1.7 2006-09-26 11:25:30 mike Exp $ +%# $Id: check.mc,v 1.8 2006-10-11 16:42:50 mike Exp $ <%args> @id @@ -24,7 +24,7 @@ print "

\n"; if ($res == 0) { print "All tests were run\n"; } else { - print "Some tests were skipped\n"; + print "$res tests were skipped\n"; } print "

\n"; -- 1.7.10.4