Skip to content

Commit

Permalink
Support other issue or bug tracker when parsing problem list adoptium…
Browse files Browse the repository at this point in the history
  • Loading branch information
LizyBbethy committed Oct 19, 2021
1 parent 63e7fe5 commit 10edbd1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion disabledTestParser/ProblemList.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"JDK_IMPL" : "openj9",
"TARGET" : "jdk_custom",
"CUSTOM_TARGET" : "java/lang/ClassLoader/Assert.java",
"GIT_ISSUE" : "https://github.com/eclipse-openj9/openj9/issues/6668",
"ISSUE_TRACKER" : "https://github.com/eclipse-openj9/openj9/issues/6668",
"PLATFORM" : "x86-64_mac"
}]
2 changes: 1 addition & 1 deletion disabledTestParser/generateDisabledTestListJson.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_test_details(test):
test_tokens = test.split()
test_details_dict["TARGET"] = "jdk_custom"
test_details_dict["CUSTOM_TARGET"] = test_tokens[0]
test_details_dict["GIT_ISSUE"] = test_tokens[1]
test_details_dict["ISSUE_TRACKER"] = test_tokens[1]
test_details_dict["PLATFORM"] = resolve_platform(test_tokens[2])
return test_details_dict

Expand Down
4 changes: 2 additions & 2 deletions disabledTestParser/issue_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

def json_parser(json_obj):
jsonLoad = json.loads(json_obj)
return jsonLoad["GIT_ISSUE"]
return jsonLoad["ISSUE_TRACKER"]

def find_state(query_url):
params = {'accept': 'application/vnd.github.v3+json',
Expand All @@ -27,7 +27,7 @@ def main():
repo_issueUrl = git_issue_url.replace("https://github.com/", "")
final_url = base_url + repo_issueUrl
state = find_state(final_url)
j["GIT_ISSUE_STATUS"] = state
j["ISSUE_TRACKER_STATUS"] = state

with open('output.json', 'w', encoding='utf-8') as f:
json.dump(data, f, ensure_ascii=False, indent=4)
Expand Down

0 comments on commit 10edbd1

Please sign in to comment.