diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2017-07-20 15:29:36 +0200 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2017-07-20 15:29:36 +0200 |
commit | 58c3a2a0bb87aca226e57440d76e61d42241a253 (patch) | |
tree | 337262e56eb7a398674d454e873485ff0d6a93a9 | |
parent | 3b901fcd7a7bbfcccce6248d0ef941b9629edda0 (diff) |
Fix pm_tests to call checkbox-support-fwts_test
Moreover fix the way the --log is passed to fwts_test as it has to be placed before the -s parameter since the rest of args are meant to be sent to fwts.
-rwxr-xr-x | bin/pm_test | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bin/pm_test b/bin/pm_test index 7eff96c..ea75ba8 100755 --- a/bin/pm_test +++ b/bin/pm_test @@ -137,16 +137,18 @@ class PowerManagementOperation(object): """Run suspend and resume cycles.""" if cycles_count < 1: return + script_path = '' if fwts: - script_name = 'fwts_test' - command_tpl = '{} -s s3 --s3-device-check --s3-sleep-delay=30 --s3-multiple={}' + script_path = 'checkbox-support-fwts_test' + command_tpl = '-s s3 --s3-device-check --s3-sleep-delay=30 --s3-multiple={}' if self.args.log_dir: - command_tpl += ' --log={}/fwts.log'.format(self.args.log_dir) + command_tpl = '--log={}/fwts.log '.format(self.args.log_dir) + command_tpl + command_tpl = '{} ' + command_tpl else: script_name = 'sleep_test' command_tpl = '{} -s mem -p -i {} -w 10' - script_path = os.path.join( - os.path.dirname(os.path.realpath(__file__)), script_name) + script_path = os.path.join( + os.path.dirname(os.path.realpath(__file__)), script_name) command_str = command_tpl.format(script_path, cycles_count) logging.info('Running suspend/resume cycles') logging.debug('Executing: {0!r}...'.format(command_str)) |