From c135b369739c939203a2c54c67ef24529363e5c9 Mon Sep 17 00:00:00 2001 From: Wei Jiangang Date: Thu, 18 Aug 2016 16:01:50 +0800 Subject: [PATCH] avocado.core.runner: Fix undefined name Signed-off-by: Wei Jiangang --- avocado/core/remote/runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/avocado/core/remote/runner.py b/avocado/core/remote/runner.py index eeeb1346..6b26b897 100644 --- a/avocado/core/remote/runner.py +++ b/avocado/core/remote/runner.py @@ -150,7 +150,7 @@ class RemoteTestRunner(TestRunner): break else: raise ValueError("Could not find the beginning of the remote JSON" - " output:\n%s" % result.stdout) + " output:\n%s" % output) if json_result.endswith('}'): # probably single-line try: response = json.loads(json_result) @@ -168,7 +168,7 @@ class RemoteTestRunner(TestRunner): pass if not response: raise ValueError("Could not find the end of the remote JSON " - "output:\n%s" % result.stdout) + "output:\n%s" % output) return response def run_test(self, urls, timeout): -- GitLab