Redirect lxc launch output to complete.log

This commit is contained in:
Alexandre Aubin 2021-01-14 15:08:20 +01:00
parent eee062fb03
commit 6f89e9f6a6
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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