Commit b1bc3918 by Łukasz Nowak

promise/plugin: Check stderr from executed commands

1 parent cc1d5d16
...@@ -46,11 +46,12 @@ class TestCheckCommandExecute(TestPromisePluginMixin): ...@@ -46,11 +46,12 @@ class TestCheckCommandExecute(TestPromisePluginMixin):
self.fail_command = os.path.join(self.tempdir, 'fail') self.fail_command = os.path.join(self.tempdir, 'fail')
self._createScript(self.fail_command, """#/bin/sh self._createScript(self.fail_command, """#/bin/sh
echo failure echo failure
echo me echo me 1>&2
exit 1""") exit 1""")
self.success_command = os.path.join(self.tempdir, 'success') self.success_command = os.path.join(self.tempdir, 'success')
self._createScript(self.success_command, """#/bin/sh self._createScript(self.success_command, """#/bin/sh
echo success echo success
echo me 1>&2
exit 0""") exit 0""")
self.promise_name = "check-command-execute.py" self.promise_name = "check-command-execute.py"
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!