From 0e7df67d439541ba07a48c1479b42c631934f3d0 Mon Sep 17 00:00:00 2001 From: Sylvain Pineau Date: Thu, 30 Jul 2015 14:16:37 +0200 Subject: 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. --- bin/fwts_test | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3