From cbfb7ffbdc97e7d3d1fe0580cd6bd1191d7a57af Mon Sep 17 00:00:00 2001 From: Federico Ressi Date: Tue, 17 Mar 2020 12:08:24 +0100 Subject: [PATCH] Keep separed test results messages from errors Change-Id: I17bbdba20aa863b316d3ff5850eeeac885a5b4c4 --- roles/tobiko-common/defaults/main.yaml | 1 - roles/tobiko-tox/tasks/main.yaml | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/tobiko-common/defaults/main.yaml b/roles/tobiko-common/defaults/main.yaml index 3edd82166..51f5ca3db 100644 --- a/roles/tobiko-common/defaults/main.yaml +++ b/roles/tobiko-common/defaults/main.yaml @@ -30,7 +30,6 @@ test_conf: {} # Logging options test_log_debug: true - # --- Test report options ----------------------------------------------------- # Remote directory where test cases shoulw write report files to diff --git a/roles/tobiko-tox/tasks/main.yaml b/roles/tobiko-tox/tasks/main.yaml index 1db799bb9..c31af3fe6 100644 --- a/roles/tobiko-tox/tasks/main.yaml +++ b/roles/tobiko-tox/tasks/main.yaml @@ -1,13 +1,15 @@ --- -- name: "Run test Tox envlist '{{ tox_envlist }}' on direcory '{{ tox_dir }}'" +- name: "run test Tox envlist '{{ tox_envlist }}' on direcory '{{ tox_dir }}'" shell: chdir: "{{ tox_dir }}" cmd: | set -x + {{ tox_command }} -e "{{ tox_envlist }}" {{ tox_extra_args }} exit_status=$? - {{ tox_command }} -c '{{ tobiko_dir }}' -e report + + {{ tox_command }} -c '{{ tobiko_dir }}' -e report 1>&2 exit "${exit_status}" register: run_tox