From c071e2b0f91a875c9da58e9a2e1b547346facc3e Mon Sep 17 00:00:00 2001 From: Allen Shih Date: Tue, 20 Aug 2019 11:39:17 -0700 Subject: [PATCH] fix absolute path of json param file --- .../tests/standalone/wdmNext/weave_wdm_next_test_base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test-apps/happy/tests/standalone/wdmNext/weave_wdm_next_test_base.py b/src/test-apps/happy/tests/standalone/wdmNext/weave_wdm_next_test_base.py index 8ec172f872..2bccac7bdc 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/weave_wdm_next_test_base.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/weave_wdm_next_test_base.py @@ -133,7 +133,9 @@ def get_test_param_json(self, test_name): Returns: dict: Dictionary containing test, client, and server test params. """ - with open("weave_wdm_next_test_params.json") as json_file: + curr_file_dir = os.path.dirname(os.path.abspath(__file__)) + test_param_json_path = "{}/weave_wdm_next_test_params.json".format(curr_file_dir) + with open(test_param_json_path) as json_file: data = json.load(json_file) return data[test_name]