By moving the check into that function. Previously at least make-flight was
failing to all ensure_logs
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Ian Jackson <ian.jackson@eu.citrix.com
with_logging() {
local log=$1; shift
+ ensure_logs
$@ 2>&1 | tee "$log"
rc=${PIPESTATUS[0]}
if [ $rc -ne 0 ] ; then
job=$1; shift
- ensure_logs
-
OSSTEST_CONFIG=$config \
OSSTEST_FLIGHT=$flight \
OSSTEST_HOST_HOST=$host \
job=$1; shift
ts=$1; shift
- ensure_logs
-
OSSTEST_CONFIG=$config \
OSSTEST_FLIGHT=$flight \
OSSTEST_HOST_REUSE=$reuse \