diff options
Diffstat (limited to 'test/utils.py')
-rw-r--r-- | test/utils.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/utils.py b/test/utils.py index ee33f3c9..fab0d4b0 100644 --- a/test/utils.py +++ b/test/utils.py @@ -94,6 +94,12 @@ class Executable(object): if error: raise error + def RunWithArgsForError(self, *args, **kwargs): + stdout, stderr, error = self._RunWithArgsInternal(*args, **kwargs) + if stdout: + sys.stdout.write(stdout) + return error + def AppendArg(self, arg): self.after_args.append(arg) |