diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2015-07-30 14:16:37 +0200 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2015-07-30 14:16:37 +0200 |
commit | 0e7df67d439541ba07a48c1479b42c631934f3d0 (patch) | |
tree | 34c08f6c41cabdf470e2709f009df86c26da8569 /bin | |
parent | 7e8c7d22c9bfc1b81040620d07035aa7e96e8e9d (diff) |
providers:checkbox:fwts_test: Save logs meant for HWE analysis into a different file
The selection is mtrr, virt, apicedge, klog, oops and uefibootpath. S3 and S4 are already saved in dedicated logs.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fwts_test | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/bin/fwts_test b/bin/fwts_test index 2ae862d..7f05d56 100755 --- a/bin/fwts_test +++ b/bin/fwts_test @@ -69,6 +69,13 @@ NON_CERT_TESTS = ['bios_info', ] TESTS = sorted(CERT_TESTS + NON_CERT_TESTS) +# The following tests will record logs in a separate file for the HWE team +HWE_TESTS = ['mtrr', + 'virt', + 'apicedge', + 'klog', + 'oops', + 'uefibootpath'] def get_sleep_times(start_marker, end_marker, sleep_time, resume_time): logfile = '/var/log/syslog' @@ -372,10 +379,14 @@ def main(): results['sleep'] = 'FAILED_CRITICAL' else: for test in tests: + # ACPI tests can now be run with --acpitests (fwts >= 15.07.00) + log = args.log + if test in HWE_TESTS: + log = log.replace('.log', '_hwe.log') if test == 'acpitests': test = '--acpitests' command = ('fwts -q --stdout-summary -r %s %s' - % (args.log, test)) + % (log, test)) results[test] = (Popen(command, stdout=PIPE, shell=True) .communicate()[0].strip()).decode() |