From d0f6a1fa04053dfea7a5ad1f03baa16fa9521e1c Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 22 Jan 2023 22:37:19 +0100 Subject: show retry button if run did not pass Signed-off-by: Olivier Gayot --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index f4022ea..a375c29 100644 --- a/app.py +++ b/app.py @@ -119,7 +119,7 @@ def index_results(LPUSER, PPA, PACKAGE, RELEASE, ARCH): continue runs[index] = info - headers = ("version", "triggers", "date", "duration", "requester", "result", "url_prefix") + headers = ("version", "triggers", "date", "duration", "requester", "result", "url_prefix", "show_retry") package_results = [] for idx, info in runs.items(): date = " ".join(idx.split("/")[-1].split("_")[0:2]) @@ -146,6 +146,7 @@ def index_results(LPUSER, PPA, PACKAGE, RELEASE, ARCH): "requester": requester, "result": human_exitcode(exitcode), "url_prefix": f"{autopkgtest_url_base}/{idx}", + "show_retry": human_exitcode(exitcode) != "pass", } package_results.append([result[h] for h in headers]) -- cgit v1.2.3