Skip to content

Commit

Permalink
Use the right argument
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed Sep 26, 2023
1 parent 6dd46b5 commit e14cc3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions link_test/link_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
4 changes: 2 additions & 2 deletions link_test/run_link_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit e14cc3b

Please sign in to comment.