mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 12:06:08 +00:00
commands/record: Fix argument validation
When ensuring that at least one stage for a workload recording was present there was a missing check to see if recording for a workload was specified.
This commit is contained in:
parent
4478bd4574
commit
0e69a9808d
@ -100,7 +100,7 @@ class RecordCommand(Command):
|
||||
args.teardown or args.all):
|
||||
self.logger.error("Cannot specify a recording stage without a Workload")
|
||||
sys.exit()
|
||||
if not (args.all or args.teardown or args.extract_results or args.run or args.setup):
|
||||
if args.workload and not any([args.all, args.teardown, args.extract_results, args.run, args.setup]):
|
||||
self.logger.error("Please specify which workload stages you wish to record")
|
||||
sys.exit()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user