summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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