Skip to content

Commit

Permalink
Remove redundant test.
Browse files Browse the repository at this point in the history
  • Loading branch information
rholden committed Jun 7, 2010
1 parent 2c35fc1 commit 3d9e2b5
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions slave/buildslave/test/unit/test_slave_commands_base.py
Expand Up @@ -6,6 +6,8 @@
from buildslave.commands.base import ShellCommand, Obfuscated, \
DummyCommand, WaitCommand, waitCommandRegistry, AbandonChain
from buildslave.commands.utils import getCommand
from twisted.python import runtime


class FakeSlaveBuilder:
debug = False
Expand Down Expand Up @@ -100,19 +102,6 @@ def check(ign):
d.addCallback(check)
return d

def testKeepStdout(self):
basedir = "test_slave_commands_base.shellcommand.keepstdout"
b = FakeSlaveBuilder(False, basedir)
s = ShellCommand(b, stdoutCommand('hello'), basedir, keepStdout=True)

d = s.start()
def check(ign):
self.failUnless({'stdout': 'hello\n'} in b.updates)
self.failUnless({'rc': 0} in b.updates)
self.failUnlessEquals(s.stdout, 'hello\n')
d.addCallback(check)
return d

def testStringCommand(self):
basedir = "test_slave_commands_base.shellcommand.string"
b = FakeSlaveBuilder(False, basedir)
Expand Down

0 comments on commit 3d9e2b5

Please sign in to comment.