Renamed: program instead of method for shell-executer

Change-Id: I4484dc1a5bf0a8158eb3d43ccab4d16ce08d8582
This commit is contained in:
Sergey Belous 2015-03-20 18:24:57 +03:00
parent 1af4738ff3
commit 44f7a4dbc6
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ execution:
- -
title: List all files title: List all files
class: shell class: shell
method: ls -al program: ls -al
- -
title: Run sample script title: Run sample script
class: shell class: shell

View File

@ -23,8 +23,8 @@ LOG = logging.getLogger(__name__)
class ShellExecutor(base.BaseExecutor): class ShellExecutor(base.BaseExecutor):
def get_command(self): def get_command(self):
if 'method' in self.test_definition: if 'program' in self.test_definition:
cmd = base.CommandLine(self.test_definition['method']) cmd = base.CommandLine(self.test_definition['program'])
elif 'script' in self.test_definition: elif 'script' in self.test_definition:
cmd = base.Script(self.test_definition['script']) cmd = base.Script(self.test_definition['script'])
return cmd.make() return cmd.make()