Skip to content

Commit

Permalink
Add config file as argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
HiFiPhile committed Aug 6, 2023
1 parent c940a2f commit 87150b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
File renamed without changes.
7 changes: 6 additions & 1 deletion test/hitl/hitl_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,12 @@ def test_dfu_runtime(id):


if __name__ == '__main__':
with open(f'{os.path.dirname(__file__)}/hitl_config.json') as f:
if len(sys.argv) != 2:
print('Usage:')
print('python hitl_test.py config.json')
sys.exit(-1)

with open(f'{os.path.dirname(__file__)}/{sys.argv[1]}') as f:
config = json.load(f)

for device in config['devices']:
Expand Down

0 comments on commit 87150b7

Please sign in to comment.