]> sjero.net Git - wget/commitdiff
run-px: exit with failure if unknown exit codes.
authorMicah Cowan <micah@cowan.name>
Tue, 8 Sep 2009 06:11:48 +0000 (23:11 -0700)
committerMicah Cowan <micah@cowan.name>
Tue, 8 Sep 2009 06:11:48 +0000 (23:11 -0700)
tests/ChangeLog
tests/run-px

index 02c64d2e8078dfed9ed76a8734b4965bcee4e73b..2da6ef7094ed72790d0d5fc045034b99a4a06d55 100644 (file)
@@ -1,5 +1,8 @@
 2009-09-07  Micah Cowan  <micah@cowan.name>
 
+       * run-px: Exit with a failure if there were any tests with
+       "unknown" exit statuses.
+       
        * Test-auth-with-content-disposition.px: New. Test Content-Disposition
        support when HTTP authentication is required.
        * run-px, Makefile.am (EXTRA_DIST): Added
index 5b2f6b5c38d98f0fd20168bca73f96faae2e6c03..0f058b9e3ec8208646dbb232bac3eb07e6835d1a 100755 (executable)
@@ -148,9 +148,9 @@ my $summary = sub
 }->();
 
 print "\n";
-print $count->('fail')
+print $count->('fail') || $count->('unknown')
   ? colored($summary, 'red')
   : colored($summary, 'green');
 print "\n";
 
-exit $count->('fail');
+exit $count->('fail') + $count->('unknown');