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

Commit

Permalink
fix absolute path of json param file
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Shih committed Aug 20, 2019
1 parent 24d2cbc commit c071e2b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit c071e2b

Please sign in to comment.