Skip to content

Commit 5c3b216

Browse files
committed
bisect: Return proper error code on kci-dev execution error
While possibility of this exception low, we need to detect this situation as error by kci-dev returning proper exit code. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent e3fb5bd commit 5c3b216

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kcidev/subcommands/bisect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def bisection_loop(state):
226226
except Exception as e:
227227
logging.error(f"Error getting return code from kci-dev: {e}")
228228
kci_err(f"Error executing kci-dev, no returncode: {e}")
229-
sys.exit
229+
sys.exit(1)
230230

231231
logging.info(f"Test completed with return code: {testret}")
232232

0 commit comments

Comments
 (0)