summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2023-08-06 22:02:15 +0200
committerHiFiPhile <[email protected]>2023-08-06 22:02:15 +0200
commit87150b77702d93527e2998c62371ef2d7d2b9860 (patch)
treea3f08db63b7201b4c80d3c3d457f5e061a6d98bb /test
parentc940a2f36247fb05364e9c56fed6daf95071e8e1 (diff)
Add config file as argument.
Diffstat (limited to 'test')
-rw-r--r--test/hitl/hitl_hfp.json (renamed from test/hitl/hitl_config.json)0
-rw-r--r--test/hitl/hitl_test.py7
2 files changed, 6 insertions, 1 deletions
diff --git a/test/hitl/hitl_config.json b/test/hitl/hitl_hfp.json
index 297ae8b81..297ae8b81 100644
--- a/test/hitl/hitl_config.json
+++ b/test/hitl/hitl_hfp.json
diff --git a/test/hitl/hitl_test.py b/test/hitl/hitl_test.py
index 60eda57ef..6c8066add 100644
--- a/test/hitl/hitl_test.py
+++ b/test/hitl/hitl_test.py
@@ -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']: