diff options
author | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2021-03-28 19:05:10 +0200 |
---|---|---|
committer | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2021-03-28 19:15:17 +0200 |
commit | 65347ce3341c8386c3e2e1e9599c5c56e79838ec (patch) | |
tree | 21467665ad08ecde961ef723a5b83b2a1be3c502 | |
parent | 8cb34ed5d75213c1d779076ab2959da54af98a1e (diff) |
testsuite: add --fail-any option to runtest
This option makes runtest's exit status !0 on any failure in any test.
(Useful in -c mode and git-bisect)
-rwxr-xr-x | test/runtest | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/runtest b/test/runtest index 0b236bca1..ab9b2bb95 100755 --- a/test/runtest +++ b/test/runtest @@ -2942,6 +2942,7 @@ GetOptions( 'valgrind' => \$valgrind, 'range=s{2}' => \my @range_wanted, 'test=i@' => \my @tests_wanted, + 'fail-any!' => \my $fail_any, 'flavor|flavour=s' => \$flavour, 'help' => sub { pod2usage(-exit => 0) }, 'man' => sub { @@ -4518,7 +4519,7 @@ foreach $test (@test_list) ################################################## tests_exit(-1, "No runnable tests selected") if not @test_list; -tests_exit($failures); +tests_exit($fail_any ? $failures : 0); __END__ |