diff mbox

[AUTOTEST,1/2] Subtest return test result.

Message ID 1307982378-27250-1-git-send-email-jzupka@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jiri Zupka June 13, 2011, 4:26 p.m. UTC
If subtest is successful runsubtest returns True otherwise False.

Signed-off-by: Ji?í Župka <jzupka@redhat.com>
---
 client/common_lib/test.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Comments

Lucas Meneghel Rodrigues June 14, 2011, 12:31 a.m. UTC | #1
On Mon, 2011-06-13 at 18:26 +0200, Ji?í Župka wrote:
> If subtest is successful runsubtest returns True otherwise False.

Applied, thanks!

http://autotest.kernel.org/changeset/5421

> Signed-off-by: Ji?í Župka <jzupka@redhat.com>
> ---
>  client/common_lib/test.py |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/client/common_lib/test.py b/client/common_lib/test.py
> index d5564c3..5b2e12c 100644
> --- a/client/common_lib/test.py
> +++ b/client/common_lib/test.py
> @@ -479,8 +479,8 @@ class base_test(object):
>          """
>          dargs["profile_only"] = dargs.get("profile_only", False)
>          test_basepath = self.outputdir[len(self.job.resultdir + "/"):]
> -        self.job.run_test(url, master_testpath=test_basepath,
> -                          *args, **dargs)
> +        return self.job.run_test(url, master_testpath=test_basepath,
> +                                 *args, **dargs)
>  
> 
>  def _get_nonstar_args(func):


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/client/common_lib/test.py b/client/common_lib/test.py
index d5564c3..5b2e12c 100644
--- a/client/common_lib/test.py
+++ b/client/common_lib/test.py
@@ -479,8 +479,8 @@  class base_test(object):
         """
         dargs["profile_only"] = dargs.get("profile_only", False)
         test_basepath = self.outputdir[len(self.job.resultdir + "/"):]
-        self.job.run_test(url, master_testpath=test_basepath,
-                          *args, **dargs)
+        return self.job.run_test(url, master_testpath=test_basepath,
+                                 *args, **dargs)
 
 
 def _get_nonstar_args(func):