Use check() return value.
authorMike Taylor <mike@indexdata.com>
Wed, 11 Oct 2006 16:42:50 +0000 (16:42 +0000)
committerMike Taylor <mike@indexdata.com>
Wed, 11 Oct 2006 16:42:50 +0000 (16:42 +0000)
bin/irspy.pl
web/htdocs/details/check.mc

index 11245ff..afdb43a 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl -w
 
 #!/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
 #
 # 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 {
 if ($res == 0) {
     print "All tests were run\n";
 } else {
-    print "Some tests were skipped\n";
+    print "$res tests were skipped\n";
 }
 }
index dd6807c..5757215 100644 (file)
@@ -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
 </%args>
 <%args>
 @id
 </%args>
@@ -24,7 +24,7 @@ print "<p>\n";
 if ($res == 0) {
     print "<b>All tests were run</b>\n";
 } else {
 if ($res == 0) {
     print "<b>All tests were run</b>\n";
 } else {
-    print "<b>Some tests were skipped</b>\n";
+    print "<b>$res tests were skipped</b>\n";
 }
 print "</p>\n";
 </%perl>
 }
 print "</p>\n";
 </%perl>