From 44f7a4dbc6533da2277b569d0eafc48ee5d9566a Mon Sep 17 00:00:00 2001 From: Sergey Belous Date: Fri, 20 Mar 2015 18:24:57 +0300 Subject: [PATCH] Renamed: program instead of method for shell-executer Change-Id: I4484dc1a5bf0a8158eb3d43ccab4d16ce08d8582 --- scenarios/misc/static_agent.yaml | 2 +- shaker/engine/executors/shell.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scenarios/misc/static_agent.yaml b/scenarios/misc/static_agent.yaml index 35b121c..d9182f2 100644 --- a/scenarios/misc/static_agent.yaml +++ b/scenarios/misc/static_agent.yaml @@ -12,7 +12,7 @@ execution: - title: List all files class: shell - method: ls -al + program: ls -al - title: Run sample script class: shell diff --git a/shaker/engine/executors/shell.py b/shaker/engine/executors/shell.py index 59d2e11..648d6ad 100644 --- a/shaker/engine/executors/shell.py +++ b/shaker/engine/executors/shell.py @@ -23,8 +23,8 @@ LOG = logging.getLogger(__name__) class ShellExecutor(base.BaseExecutor): def get_command(self): - if 'method' in self.test_definition: - cmd = base.CommandLine(self.test_definition['method']) + if 'program' in self.test_definition: + cmd = base.CommandLine(self.test_definition['program']) elif 'script' in self.test_definition: cmd = base.Script(self.test_definition['script']) return cmd.make()