summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-10-20 16:05:31 +0200
committerPavel Raiskup <praiskup@redhat.com>2014-10-20 16:05:31 +0200
commit479ac2e54b1016f99aae18f3e7e76263535ee0b2 (patch)
tree258f53a36eef8d2499d818832807aaed6b83f6a2
parentfa94bd10b74748c87272edbc7d93abc335949e94 (diff)
downloadpostgresql-setup-tests-479ac2e54b1016f99aae18f3e7e76263535ee0b2.tar.gz
postgresql-setup-tests-479ac2e54b1016f99aae18f3e7e76263535ee0b2.tar.xz
postgresql-setup-tests-479ac2e54b1016f99aae18f3e7e76263535ee0b2.zip
runner: template fix for NOT AVAILABLE results
* runner/result_templates/html.tmpl: When particular task results are not available, print NOT AVAILABLE instead of FAIL.
-rw-r--r--runner/result_templates/html.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/runner/result_templates/html.tmpl b/runner/result_templates/html.tmpl
index 14696c2..8a09ad7 100644
--- a/runner/result_templates/html.tmpl
+++ b/runner/result_templates/html.tmpl
@@ -25,7 +25,9 @@
: }
<td><: $result.dirname :></td>
: for $task_ids.keys() -> $task_id {
- : if $result.tasks[$task_id].exit_status == 0 {
+ : if (not defined($result.tasks[$task_id].exit_status)) {
+ <td>NOT AVAILABLE</td>
+ : } elsif ($result.tasks[$task_id].exit_status == 0) {
<td>OK</td>
: } else {
<td class="danger">FAIL</td>