diff --git a/avocado/plugins/vm.py b/avocado/plugins/vm.py index 719ade6ad417ad0c77d909499fe90d48b36aee14..1ee29225e591127f697250772f43258d3d7cf2fb 100644 --- a/avocado/plugins/vm.py +++ b/avocado/plugins/vm.py @@ -52,7 +52,12 @@ class VMTestRunner(TestRunner): """ avocado_cmd = 'avocado --json run --archive "%s"' % urls stdout = self.result.vm.remote.run(avocado_cmd) - results = json.loads(stdout) + try: + results = json.loads(stdout) + except Exception, details: + raise ValueError('Error loading JSON ' + '(full output below): %s\n"""\n%s\n"""' % + (details, stdout)) return results def run(self, params_list):