1
0
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:
Marc Bonnici 2018-04-10 14:54:45 +01:00 committed by setrofim
parent f343f3a7ec
commit 5664d312eb

View File

@ -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)