From 86baf4879accc9f0ed65913b2a59b7deb3e638cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Tue, 22 Jun 2021 14:30:47 +0200 Subject: [PATCH] tools/deploy-qemu: use sys.exit instead of exit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit exit is just a helper for the interactive shell, see: https://stackoverflow.com/questions/6501121/difference-between-exit-and-sys-exit-in-python Signed-off-by: Ondřej Budai --- tools/deploy-qemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/deploy-qemu b/tools/deploy-qemu index 6557a977a..81f91d88b 100755 --- a/tools/deploy-qemu +++ b/tools/deploy-qemu @@ -24,7 +24,7 @@ its content as additional arguments to qemu.""" if len(sys.argv) != 3: print(HELP_TEXT) - exit(1) + sys.exit(1) script_dir = os.path.dirname(os.path.realpath(__file__)) image = sys.argv[1]