From 5d6574741ce9436202e74bd7f80f75afb23dff69 Mon Sep 17 00:00:00 2001 From: Edward Hope-Morley Date: Wed, 25 Sep 2024 10:29:33 +0100 Subject: [PATCH] Ensure func tests log both stdout and stderr Juju 2 prints output to stderr as opposed to stdout in Juju 3 so need to pipe both to logs. --- openstack/tools/charmed_openstack_functest_runner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack/tools/charmed_openstack_functest_runner.sh b/openstack/tools/charmed_openstack_functest_runner.sh index 1990bb4b..f34bac55 100755 --- a/openstack/tools/charmed_openstack_functest_runner.sh +++ b/openstack/tools/charmed_openstack_functest_runner.sh @@ -288,5 +288,5 @@ for target in ${!func_targets[@]}; do echo " * $target: FAILURE$voting_info" fi done -) | tee $LOGFILE +) 2>&1 | tee $LOGFILE echo -e "\nResults also saved to $LOGFILE"