mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 19:32:34 +01: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:
@@ -100,7 +100,7 @@ class RecordCommand(Command):
|
|||||||
args.teardown or args.all):
|
args.teardown or args.all):
|
||||||
self.logger.error("Cannot specify a recording stage without a Workload")
|
self.logger.error("Cannot specify a recording stage without a Workload")
|
||||||
sys.exit()
|
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")
|
self.logger.error("Please specify which workload stages you wish to record")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user