From 62fdcbeaa5db9c2413a61f5f9a82d36835cb70bb Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 27 Oct 2014 14:05:44 +0100 Subject: controller: better connect with other utilities * controller/bin/dtf-controller.in (subcommand): Generate stdout and stderr files separately. (child_task): Generate '*.err' and '*.out' logs for subcommands. Call dtf-run-remote with --distro/--distro-version options. Call the dtf-result-stats finally and save its output to results.html. (main): Simple debugging info and comment adjusting. * controller/libexec/dtf-commit-results.in: Tak three arguments now. * controller/libexec/dtf-result-stats.in: Better read the 'tester/run' output. * controller/share/dtf-controller/ansible/playbooks/fedora.yml: Run the 'run --force' instead of 'run' on remote host. * controller/share/dtf-controller/results-stats-templates/html.tmpl React on exit_status 2. --- controller/share/dtf-controller/ansible/playbooks/fedora.yml | 2 +- controller/share/dtf-controller/results-stats-templates/html.tmpl | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'controller/share/dtf-controller') diff --git a/controller/share/dtf-controller/ansible/playbooks/fedora.yml b/controller/share/dtf-controller/ansible/playbooks/fedora.yml index 7c62f61..1d49671 100644 --- a/controller/share/dtf-controller/ansible/playbooks/fedora.yml +++ b/controller/share/dtf-controller/ansible/playbooks/fedora.yml @@ -44,7 +44,7 @@ - shell: cd /root && tar -xf {{ opt_testsuite_name }}.tar.gz - - shell: cd /root/{{ opt_testsuite_name }}&& ./run &>/var/tmp/dtf-run.overview + - shell: cd /root/{{ opt_testsuite_name }}&& ./run --force &>/var/tmp/dtf-run.overview register: test_result ignore_errors: yes diff --git a/controller/share/dtf-controller/results-stats-templates/html.tmpl b/controller/share/dtf-controller/results-stats-templates/html.tmpl index 8a09ad7..af06322 100644 --- a/controller/share/dtf-controller/results-stats-templates/html.tmpl +++ b/controller/share/dtf-controller/results-stats-templates/html.tmpl @@ -18,7 +18,9 @@ : for $results -> $result { - : if ($result.exit_status) { + : if ($result.exit_status == 0) { + + : } elsif ($result.exit_status == 2) { : } else { -- cgit