diff options
| author | Ha Thach <[email protected]> | 2024-07-15 18:10:16 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-07-15 18:10:16 +0700 |
| commit | 7ff52021ade7acdd3f43afd9dcaaea030dfc241b (patch) | |
| tree | 3f51a49e07cc0b85aef863f1cdddb1d65c75b1f6 /test | |
| parent | bd15f65e81724d05493fe9e020daf9a2ff7d2865 (diff) | |
| parent | cc6806144fa0ff4fba4d63c8ec2cc580bb4db48a (diff) | |
Merge pull request #2712 from hathach/migrate-hil-pi5
update hil test to run on new pi5
Diffstat (limited to 'test')
| -rw-r--r-- | test/hil/hil_test.py | 4 | ||||
| -rw-r--r-- | test/hil/rpi.json (renamed from test/hil/pi4.json) | 0 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/hil/hil_test.py b/test/hil/hil_test.py index c2699cc6f..3ba84f881 100644 --- a/test/hil/hil_test.py +++ b/test/hil/hil_test.py @@ -330,7 +330,9 @@ def main(): config_file = args.config_file boards = args.board - config_file = os.path.join(os.path.dirname(__file__), config_file) + # if config file is not found, try to find it in the same directory as this script + if not os.path.exists(config_file): + config_file = os.path.join(os.path.dirname(__file__), config_file) with open(config_file) as f: config = json.load(f) diff --git a/test/hil/pi4.json b/test/hil/rpi.json index bdb8a5fa5..bdb8a5fa5 100644 --- a/test/hil/pi4.json +++ b/test/hil/rpi.json |
