From 3f7e62b340045888b974fd0082d034db6c5af902 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 11 Mar 2015 10:43:28 +0100 Subject: [PATCH] tests: enable kmsg by default By default we want to capture kernel log into test trace (since when test crashes it could be problem to reproduce). --- test/lib/brick-shelltest.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/lib/brick-shelltest.h b/test/lib/brick-shelltest.h index 4f0e1bfc4..3c88a85e0 100644 --- a/test/lib/brick-shelltest.h +++ b/test/lib/brick-shelltest.h @@ -649,7 +649,7 @@ struct Options { std::string flavour_envvar; int timeout; Options() : verbose( false ), batch( false ), interactive( false ), - cont( false ), fatal_timeouts( false ), kmsg( false ), + cont( false ), fatal_timeouts( false ), kmsg( true ), timeout( 180 ) {} }; @@ -1135,8 +1135,8 @@ int run( int argc, const char **argv, std::string fl_envvar = "TEST_FLAVOUR" ) if ( args.has( "--timeout" ) ) opt.timeout = atoi( args.opt( "--timeout" ).c_str() ); - if ( args.has( "--kmsg" ) ) - opt.kmsg = true; + if ( args.has( "--nokmsg" ) ) + opt.kmsg = false; opt.outdir = args.opt( "--outdir" ); opt.testdir = args.opt( "--testdir" ); -- 2.43.5