From 479ac2e54b1016f99aae18f3e7e76263535ee0b2 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 20 Oct 2014 16:05:31 +0200 Subject: 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. --- runner/result_templates/html.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ : } <: $result.dirname :> : for $task_ids.keys() -> $task_id { - : if $result.tasks[$task_id].exit_status == 0 { + : if (not defined($result.tasks[$task_id].exit_status)) { + NOT AVAILABLE + : } elsif ($result.tasks[$task_id].exit_status == 0) { OK : } else { FAIL -- cgit