summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-07-15 17:46:20 +0700
committerhathach <[email protected]>2024-07-15 17:46:20 +0700
commitcc6806144fa0ff4fba4d63c8ec2cc580bb4db48a (patch)
tree3f51a49e07cc0b85aef863f1cdddb1d65c75b1f6 /test
parentbd15f65e81724d05493fe9e020daf9a2ff7d2865 (diff)
update hil test to run on new pi5
Diffstat (limited to 'test')
-rw-r--r--test/hil/hil_test.py4
-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