Skip to content

Commit

Permalink
add a test for command=[..]
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Dec 11, 2011
1 parent f171fc3 commit 9d13649
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions master/buildbot/test/unit/test_steps_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,20 @@ def test_run_simple(self):
self.expectOutcome(result=SUCCESS, status_text=["'echo", "hello'"])
return self.runStep()

def test_run_list(self):
self.setupStep(
shell.ShellCommand(workdir='build',
command=['trial', '-b', '-B', 'buildbot.test']))
self.expectCommands(
ExpectShell(workdir='build',
command=['trial', '-b', '-B', 'buildbot.test'],
usePTY="slave-config")
+ 0
)
self.expectOutcome(result=SUCCESS,
status_text=["'trial", "-b", "...'"])
return self.runStep()

def test_run_env(self):
self.setupStep(
shell.ShellCommand(workdir='build', command="echo hello"),
Expand Down

0 comments on commit 9d13649

Please sign in to comment.