tools/deploy-qemu: use sys.exit instead of exit

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 <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2021-06-22 14:30:47 +02:00 committed by msehnout
parent 99d1d4e5d0
commit 86baf4879a

View file

@ -24,7 +24,7 @@ its content as additional arguments to qemu."""
if len(sys.argv) != 3: if len(sys.argv) != 3:
print(HELP_TEXT) print(HELP_TEXT)
exit(1) sys.exit(1)
script_dir = os.path.dirname(os.path.realpath(__file__)) script_dir = os.path.dirname(os.path.realpath(__file__))
image = sys.argv[1] image = sys.argv[1]