Skip to content

Commit 87150b7

Browse files
committed
Add config file as argument.
1 parent c940a2f commit 87150b7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
File renamed without changes.

test/hitl/hitl_test.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,12 @@ def test_dfu_runtime(id):
172172

173173

174174
if __name__ == '__main__':
175-
with open(f'{os.path.dirname(__file__)}/hitl_config.json') as f:
175+
if len(sys.argv) != 2:
176+
print('Usage:')
177+
print('python hitl_test.py config.json')
178+
sys.exit(-1)
179+
180+
with open(f'{os.path.dirname(__file__)}/{sys.argv[1]}') as f:
176181
config = json.load(f)
177182

178183
for device in config['devices']:

0 commit comments

Comments
 (0)