From 46d60a374ae0c6cf6cc12a6e498f246b6be5c671 Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Mon, 7 Sep 2009 23:11:48 -0700 Subject: [PATCH] run-px: exit with failure if unknown exit codes. --- tests/ChangeLog | 3 +++ tests/run-px | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/ChangeLog b/tests/ChangeLog index 02c64d2e..2da6ef70 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,8 @@ 2009-09-07 Micah Cowan + * 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 diff --git a/tests/run-px b/tests/run-px index 5b2f6b5c..0f058b9e 100755 --- a/tests/run-px +++ b/tests/run-px @@ -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');