1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-20 11:58:55 +00:00

commands/record: Make recording of run stage optional

Change the recording of the run stage during workload recording mode to be
optional as the user may want to use the command to re-record a specific
stage of a workload without affecting the workload recording.
This commit is contained in:
Marc Bonnici 2018-03-08 15:49:30 +00:00 committed by setrofim
parent d253fd07e6
commit 8729702ee5

View File

@ -68,6 +68,8 @@ class RecordCommand(Command):
self.parser.add_argument('-o', '--output', help='Specify the output file', metavar='FILE')
self.parser.add_argument('-s', '--setup', help='Record a recording for setup stage',
action='store_true')
self.parser.add_argument('-r', '--run', help='Record a recording for run stage',
action='store_true')
self.parser.add_argument('-e', '--extract_results', help='Record a recording for extract_results stage',
action='store_true')
self.parser.add_argument('-t', '--teardown', help='Record a recording for teardown stage',
@ -194,7 +196,8 @@ class RecordCommand(Command):
'revent_files')
if args.setup or args.all:
self.record(setup_file, 'SETUP', output_path)
self.record(run_file, 'RUN', output_path)
if args.run or args.all:
self.record(run_file, 'RUN', output_path)
if args.extract_results or args.all:
self.record(extract_results_file, 'EXTRACT_RESULTS', output_path)
if args.teardown or args.all: