From 1e08cc120fb75d8b9b1027f8990b87384a8a8778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Jeanneret?= Date: Mon, 19 Sep 2022 14:40:15 +0200 Subject: [PATCH] Output a correct value in the log Previously, it was just stating "error with openstack" for any failure, instead of pointing to the actual job. Change-Id: I443debe5cbbb7c1ff8fad21236f16574c23ff83f --- .../validate-undercloud/templates/undercloud-sanity-check.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/validate-undercloud/templates/undercloud-sanity-check.sh.j2 b/roles/validate-undercloud/templates/undercloud-sanity-check.sh.j2 index a8bf261b9..b21818e33 100644 --- a/roles/validate-undercloud/templates/undercloud-sanity-check.sh.j2 +++ b/roles/validate-undercloud/templates/undercloud-sanity-check.sh.j2 @@ -31,7 +31,7 @@ function citest { "$@" local status=$? if [ $status -ne 0 ]; then - echo "error with $1" >&2 + echo "error with ${test_name}" >&2 generate-subunit $(date +%s) 10 fail $test_name >> {{ working_dir }}/undercloud_sanity.subunit script_return_value=1 else