def test_sample(self): self.setupStep(python.BuildEPYDoc()) self.expectCommands( ExpectShell(workdir='wkdir', command=['make', 'epydocs']) + ExpectShell.log('stdio', stdout=epydoc_output) + 1, ) self.expectOutcome(result=FAILURE, state_string='epydoc warn=1 err=3 (failure)') return self.runStep()
def test_sample(self): self.setup_step(python.BuildEPYDoc()) self.expect_commands( ExpectShell(workdir='wkdir', command=['make', 'epydocs']) .stdout(epydoc_output) .exit(1), ) self.expect_outcome(result=FAILURE, state_string='epydoc warn=1 err=3 (failure)') return self.run_step()
def test_sample(self): self.setupStep(python.BuildEPYDoc()) self.expectCommands( ExpectShell(workdir='wkdir', command=['make', 'epydocs'], usePTY='slave-config') + ExpectShell.log('stdio', stdout=epydoc_output) + 1, ) self.expectOutcome(result=FAILURE, status_text=['epydoc', 'warn=1', 'err=3', 'failed']) return self.runStep()
def testAllSteps(self): # make sure that steps can be created from the factories that they # return for s in ( dummy.Dummy(), dummy.FailingDummy(), dummy.RemoteDummy(), maxq.MaxQ("testdir"), python.BuildEPYDoc(), python.PyFlakes(), python_twisted.HLint(), python_twisted.Trial(testpath=None, tests="tests"), python_twisted.ProcessDocs(), python_twisted.BuildDebs(), python_twisted.RemovePYCs(), shell.ShellCommand(), shell.TreeSize(), shell.Configure(), shell.Compile(), shell.Test(), source.CVS("cvsroot", "module"), source.SVN("svnurl"), source.Darcs("repourl"), source.Git("repourl"), source.Arch("url", "version"), source.Bazaar("url", "version", "archive"), source.Bzr("repourl"), source.Mercurial("repourl"), source.P4("p4base"), source.P4Sync(1234, "p4user", "passwd", "client", mode="copy"), source.Monotone("server", "branch"), transfer.FileUpload("src", "dest"), transfer.FileDownload("src", "dest"), ): try: self._loop(s) except: print "error checking %s" % s raise