iotests/check: Fix typing for sys.exit() value

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
Message-id: 20221203005234.620788-3-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
This commit is contained in:
John Snow 2022-12-02 19:52:33 -05:00
parent 745d58f77d
commit 5bcf18b0ac

View File

@ -159,7 +159,7 @@ if __name__ == '__main__':
if not tests:
raise ValueError('No tests selected')
except ValueError as e:
sys.exit(e)
sys.exit(str(e))
if args.dry_run:
print('\n'.join(tests))