From 6f89e9f6a6f945b106af4febc025934310aff14f Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 14 Jan 2021 15:08:20 +0100 Subject: [PATCH] Redirect lxc launch output to complete.log --- lib/lxc.sh | 3 ++- lib/tests_coordination.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/lxc.sh b/lib/lxc.sh index f5450a1..a68ec4e 100644 --- a/lib/lxc.sh +++ b/lib/lxc.sh @@ -5,12 +5,13 @@ #================================================= LXC_CREATE () { + log_info "Launching new LXC $LXC_NAME ..." lxc launch yunohost:$LXC_BASE $LXC_NAME \ -c security.nesting=true \ -c security.privileged=true \ -c limits.memory=80% \ -c limits.cpu.allowance=80% \ - | grep -v -E "^\s*Remapping container filesystem\s*$\|^\s*Retrieving image" + >>/proc/self/fd/3 [[ "${PIPESTATUS[0]}" -eq 0 ]] || exit 1 diff --git a/lib/tests_coordination.sh b/lib/tests_coordination.sh index 4ab616c..14d0260 100644 --- a/lib/tests_coordination.sh +++ b/lib/tests_coordination.sh @@ -260,7 +260,7 @@ run_all_tests() { fi # Launch all tests successively - cat $TEST_CONTEXT/tests/*.json >&3 + cat $TEST_CONTEXT/tests/*.json >> /proc/self/fd/3 # Reset and create a fresh container to work with check_lxd_setup