Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions kcidev/subcommands/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def cmd_builds(data, commit, download_logs, status):
file.write(log)
log_path = "file://" + os.path.join(os.getcwd(), log_file)
except:
kci_err(f"Failed to fetch log {build["log_url"]}.")
kci_err(f"Failed to fetch log {build['log_url']}.")
pass

kci_msg_nonl("- config:")
Expand Down Expand Up @@ -329,12 +329,12 @@ def cmd_tests(data, commit, download_logs, status_filter, filter):
try:
log_gz = requests.get(test["log_url"])
log = gzip.decompress(log_gz.content)
log_file = f"{test["misc"]["platform"]}__{test["path"]}__{test['config']}-{test['architecture']}-{test['compiler']}-{commit}.log"
log_file = f"{test['misc']['platform']}__{test['path']}__{test['config']}-{test['architecture']}-{test['compiler']}-{commit}.log"
with open(log_file, mode="wb") as file:
file.write(log)
log_path = "file://" + os.path.join(os.getcwd(), log_file)
except:
kci_err(f"Failed to fetch log {test["log_url"]}.")
kci_err(f"Failed to fetch log {test['log_url']}.")
pass

kci_msg_nonl("- test path: ")
Expand Down Expand Up @@ -364,7 +364,7 @@ def cmd_tests(data, commit, download_logs, status_filter, filter):
elif test["status"] == "FAIL":
kci_msg_red_nonl("FAIL")
else:
kci_msg_yellow_nonl(f"INCONCLUSIVE (status: {test["status"]})")
kci_msg_yellow_nonl(f"INCONCLUSIVE (status: {test['status']})")
kci_msg("")

kci_msg(f" log: {log_path}")
Expand Down
Loading