def test_run_nested_description(self): self.setupStep( shell.ShellCommand( workdir='build', command=properties.FlattenList( ['trial', ['-b', '-B'], 'buildbot.test']), descriptionDone=properties.FlattenList(['test', ['done']]), descriptionSuffix=properties.FlattenList(['suff', ['ix']]))) self.expectCommands( ExpectShell(workdir='build', command=['trial', '-b', '-B', 'buildbot.test']) + 0) self.expectOutcome(result=SUCCESS, state_string='test done suff ix') return self.runStep()
def test_run_nested_description(self): self.setupStep( shell.ShellCommand(workdir='build', command=properties.FlattenList( ['trial', ['-b', '-B'], 'buildbot.test']), description=properties.FlattenList( ['test', ['done']]))) self.expectCommands( ExpectShell(workdir='build', command=['trial', '-b', '-B', 'buildbot.test'], usePTY="slave-config") + 0) self.expectOutcome(result=SUCCESS, status_text=['test', 'done']) return self.runStep()