summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2023-01-22 22:37:19 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2023-01-22 22:37:19 +0100
commitd0f6a1fa04053dfea7a5ad1f03baa16fa9521e1c (patch)
tree8a1738dd6098af5463916cf6c4ff794c2bc8b399 /app.py
parent8815baab6fae0f45d2985a42f3b518b159efdfc7 (diff)
show retry button if run did not pass
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'app.py')
-rw-r--r--app.py3
1 files changed, 2 insertions, 1 deletions
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])