From e14cc3ba546008d82b8326ba4847cd65a6f11b0f Mon Sep 17 00:00:00 2001 From: Andrew Rowley Date: Tue, 26 Sep 2023 08:41:26 +0100 Subject: [PATCH] Use the right argument --- link_test/link_tester.py | 4 ++-- link_test/run_link_test.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/link_test/link_tester.py b/link_test/link_tester.py index 990e89eb..15171f31 100644 --- a/link_test/link_tester.py +++ b/link_test/link_tester.py @@ -52,6 +52,6 @@ def run(n_chips=None): if __name__ == "__main__": n_chips = None - if len(sys.argv) > 0: - n_chips = int(sys.argv[0]) + if len(sys.argv) > 1: + n_chips = int(sys.argv[1]) run(n_chips) diff --git a/link_test/run_link_test.py b/link_test/run_link_test.py index 8917da90..547f5325 100644 --- a/link_test/run_link_test.py +++ b/link_test/run_link_test.py @@ -97,7 +97,7 @@ def test_run(x, y): if __name__ == "__main__": n_chips = None - if len(sys.argv) > 0: - n_chips = int(sys.argv[0]) + if len(sys.argv) > 1: + n_chips = int(sys.argv[1]) link_test = LinkTest() link_test.do_run(n_chips)