diff options
author | Pierre Equoy <pierre.equoy@canonical.com> | 2016-07-26 17:09:50 +0800 |
---|---|---|
committer | Pierre Equoy <pierre.equoy@canonical.com> | 2016-07-26 17:09:50 +0800 |
commit | ccc5a6d052b39d23fed4e81a1ddc9a4a4e5a6b0e (patch) | |
tree | 335084618cda9a7d40f6c7c2c1887f81f0522ea7 /bin | |
parent | 6801201569fdbbf3c2615beb997f39ca5a6ae7a8 (diff) |
providers:checkbox: revert change to avoid huge logs when running stress testsplainbox-provider-checkbox-v0.30c2plainbox-provider-checkbox-v0.30
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fwts_test | 16 | ||||
-rwxr-xr-x | bin/pm_test | 14 |
2 files changed, 17 insertions, 13 deletions
diff --git a/bin/fwts_test b/bin/fwts_test index cb0924b..a506a4f 100755 --- a/bin/fwts_test +++ b/bin/fwts_test @@ -411,13 +411,15 @@ def main(): # lp:1584607 # We append the content of dmesg and syslog at the end of the logfile # generated by FWTS. - with open(args.log, 'a') as logfile: - logfile.write("--- beginning of dmesg ---\n") - logfile.write(check_output('dmesg').decode('utf-8', 'ignore')) - logfile.write("--- end of dmesg ---\n") - logfile.write("--- beginning of syslog ---\n") - logfile.write(check_output(['cat', '/var/log/syslog']).decode('utf-8', 'ignore')) - logfile.write("--- end of syslog ---\n") + # FIXME: Commented out after discovered that it created HUGE log files + # during stress tests. + #with open(args.log, 'a') as logfile: + # logfile.write("--- beginning of dmesg ---\n") + # logfile.write(check_output('dmesg').decode('utf-8', 'ignore')) + # logfile.write("--- end of dmesg ---\n") + # logfile.write("--- beginning of syslog ---\n") + # logfile.write(check_output(['cat', '/var/log/syslog']).decode('utf-8', 'ignore')) + # logfile.write("--- end of syslog ---\n") # parse the summaries for test in results.keys(): diff --git a/bin/pm_test b/bin/pm_test index 732588b..c0fb879 100755 --- a/bin/pm_test +++ b/bin/pm_test @@ -492,12 +492,14 @@ class CountdownDialog(Gtk.Dialog): Gather system information and print it to logs """ logging.info('Gathering system information...') - logging.debug('--- beginning of dmesg ---') - logging.debug(Command('dmesg').run().stdout) - logging.debug('--- end of dmesg ---') - logging.debug('--- beginning of syslog ---') - logging.debug(Command('cat /var/log/syslog').run().stdout) - logging.debug('--- end of syslog ---') + # FIXME: Commented out as it created huge log files + # during stress tests. + #logging.debug('--- beginning of dmesg ---') + #logging.debug(Command('dmesg').run().stdout) + #logging.debug('--- end of dmesg ---') + #logging.debug('--- beginning of syslog ---') + #logging.debug(Command('cat /var/log/syslog').run().stdout) + #logging.debug('--- end of syslog ---') class MessageDialog(object): |