Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit c071e2b

Browse files
author
Allen Shih
committed
fix absolute path of json param file
1 parent 24d2cbc commit c071e2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test-apps/happy/tests/standalone/wdmNext/weave_wdm_next_test_base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ def get_test_param_json(self, test_name):
133133
Returns:
134134
dict: Dictionary containing test, client, and server test params.
135135
"""
136-
with open("weave_wdm_next_test_params.json") as json_file:
136+
curr_file_dir = os.path.dirname(os.path.abspath(__file__))
137+
test_param_json_path = "{}/weave_wdm_next_test_params.json".format(curr_file_dir)
138+
with open(test_param_json_path) as json_file:
137139
data = json.load(json_file)
138140
return data[test_name]
139141

0 commit comments

Comments
 (0)