From: Luke Kenneth Casson Leighton Date: Sun, 21 Nov 2021 21:12:14 +0000 (+0000) Subject: parse test_issuer args allow option "allow-overlap" to be optional X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24537ba3b478c1e28ead19dbeed34238e3500c60;p=soc.git parse test_issuer args allow option "allow-overlap" to be optional --- diff --git a/src/soc/simple/test/test_issuer.py b/src/soc/simple/test/test_issuer.py index 4f5d2c6a..b8245cbf 100644 --- a/src/soc/simple/test/test_issuer.py +++ b/src/soc/simple/test/test_issuer.py @@ -42,7 +42,7 @@ if __name__ == "__main__": # detect overlap case allow_overlap = False - if sys.argv[1] == '--allow-overlap': + if len(sys.argv) >= 2 and sys.argv[1] == '--allow-overlap': allow_overlap = True del sys.argv[1]