From 5664d312eb61dd6900fe293825de5fb3b348ab0a Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Tue, 10 Apr 2018 14:54:45 +0100 Subject: [PATCH] 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. --- wa/commands/revent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wa/commands/revent.py b/wa/commands/revent.py index 6eb885a6..45d6e207 100644 --- a/wa/commands/revent.py +++ b/wa/commands/revent.py @@ -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)