From 32f22076bc02b3f07a9901c061f41046e60334d4 Mon Sep 17 00:00:00 2001 From: Vojtech Horky Date: Mon, 27 Aug 2018 22:06:46 +0200 Subject: [PATCH] Set proper return code --- vm-test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vm-test.py b/vm-test.py index 2c2ea06..c88023b 100755 --- a/vm-test.py +++ b/vm-test.py @@ -156,11 +156,13 @@ for t in scenario['tasks']: task_inst.set_machine(machine) scenario_tasks.append(task_inst) +exit_code = 0 try: for t in scenario_tasks: t.run() except Exception as ex: print(ex) + exit_code = 1 vmm.terminate(config.vterm_dump, config.last_screenshot) - +sys.exit(exit_code) -- 2.11.4.GIT