From 24537ba3b478c1e28ead19dbeed34238e3500c60 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 21 Nov 2021 21:12:14 +0000 Subject: [PATCH] parse test_issuer args allow option "allow-overlap" to be optional --- src/soc/simple/test/test_issuer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.30.2