mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
commands/revent: Add error message if not specifying workload stage
Ensure that if a workload is chosen for recording the user also specifies which stages they wish to record for.
This commit is contained in:
parent
f343f3a7ec
commit
5664d312eb
@ -95,6 +95,9 @@ 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):
|
||||
self.logger.error("Please specify which workload stages you wish to record")
|
||||
sys.exit()
|
||||
|
||||
def execute(self, state, args):
|
||||
self.validate_args(args)
|
||||
|
Loading…
x
Reference in New Issue
Block a user