summaryrefslogtreecommitdiff
diff options
authorSylvain Pineau <sylvain.pineau@canonical.com>2015-08-26 10:01:19 +0200
committerSylvain Pineau <sylvain.pineau@canonical.com>2015-08-26 10:01:19 +0200
commit3d9438df35e29070470b8167641adc8d0a337e78 (patch)
tree1a105596d573818eb3fe249c618ddc2a0ad4e2a1
parent5bd5c85bae9158adfcc7406365228a1f77cadb6a (diff)
providers:checkbox:fwts_test: Only create the HWE log if started without -t
fwts_test called without any parameter will launch all the certification tests. In that context, all fwts test outputs will be grouped into a single log file. This is where we need to split hwe tests into a second log file. But there's also a local jobs creating jobs for all tests returned by fwts_test --list. Here not only cert tests will be returned but all the tests defined in the script (aka advanced tests). This execution mode is meant to be used by CDTS where we wanted to have a job per fwts test and thus a log per test.
-rwxr-xr-xbin/fwts_test3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/fwts_test b/bin/fwts_test
index 7f05d56..3b92051 100755
--- a/bin/fwts_test
+++ b/bin/fwts_test
@@ -381,7 +381,8 @@ def main():
for test in tests:
# ACPI tests can now be run with --acpitests (fwts >= 15.07.00)
log = args.log
- if test in HWE_TESTS:
+ # Split the log file for HWE (only if -t is not used)
+ if not args.test and test in HWE_TESTS:
log = log.replace('.log', '_hwe.log')
if test == 'acpitests':
test = '--acpitests'