master - test: Fix timeout handling
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=efcb3bbc8d2ebcc39031cc0d7b446daf864d281e Commit: efcb3bbc8d2ebcc39031cc0d7b446daf864d281e Parent: 309979d57891912b977edbd89970bf25614ee9eb Author: Marian Csontos <[email protected]> AuthorDate: Thu Oct 1 13:17:00 2015 +0200 Committer: Marian Csontos <[email protected]> CommitterDate: Thu Oct 1 13:19:29 2015 +0200
test: Fix timeout handling
Timeouts were considered as warnings only. Signalling failure is preferred.
--- test/lib/brick-shelltest.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
test/lib/brick-shelltest.h +2 -2
@@ -267,7 +267,7 @@ struct Journal { std::cout << std::endl << "### " << status.size() << " tests: " << count( PASSED ) << " passed, " << count( SKIPPED ) << " skipped, " - << count( TIMEOUT ) + count( WARNED ) << " broken, " + << count( TIMEOUT ) << " timed out, " << count( WARNED ) << " warned, " << count( FAILED ) << " failed" << std::endl; }
@@ -1047,7 +1047,7 @@ struct Main {if ( die || fatal_signal )return 1 ; - return journal.count( Journal::FAILED ) ? 1 : 0; + return journal.count( Journal::FAILED ) || journal.count( Journal::TIMEOUT ) ? 1 : 0; } Main( Options o ) : die( false ), journal( o.outdir ), options( o ) {}