From 27f21d375bd81d8417421d749f85cf27d26434fb Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Thu, 9 Oct 2014 13:16:47 +0100 Subject: [PATCH] Unittest - Clarify documentation of runSuccess/runError --- test/basetest/task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/basetest/task.py b/test/basetest/task.py index d35f012e2..ee0e4b12d 100644 --- a/test/basetest/task.py +++ b/test/basetest/task.py @@ -256,7 +256,7 @@ class Task(object): return run_cmd_wait(cmd, env=self.env) def runSuccess(self, args=(), input=None, merge_streams=True): - """Invoke task with the given arguments + """Invoke task with given arguments and fail if exit code != 0 Use runError if you want exit_code to be tested automatically and *not* fail if program finishes abnormally. @@ -282,7 +282,7 @@ class Task(object): return output def runError(self, args=(), input=None, merge_streams=True): - """Same as runSuccess but Invoke task with the given arguments + """Invoke task with given arguments and fail if exit code == 0 Use runSuccess if you want exit_code to be tested automatically and *fail* if program finishes abnormally.