mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Redirect lxc launch output to complete.log
This commit is contained in:
parent
eee062fb03
commit
6f89e9f6a6
2 changed files with 3 additions and 2 deletions
|
@ -5,12 +5,13 @@
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
LXC_CREATE () {
|
LXC_CREATE () {
|
||||||
|
log_info "Launching new LXC $LXC_NAME ..."
|
||||||
lxc launch yunohost:$LXC_BASE $LXC_NAME \
|
lxc launch yunohost:$LXC_BASE $LXC_NAME \
|
||||||
-c security.nesting=true \
|
-c security.nesting=true \
|
||||||
-c security.privileged=true \
|
-c security.privileged=true \
|
||||||
-c limits.memory=80% \
|
-c limits.memory=80% \
|
||||||
-c limits.cpu.allowance=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
|
[[ "${PIPESTATUS[0]}" -eq 0 ]] || exit 1
|
||||||
|
|
||||||
|
|
|
@ -260,7 +260,7 @@ run_all_tests() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Launch all tests successively
|
# 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
|
# Reset and create a fresh container to work with
|
||||||
check_lxd_setup
|
check_lxd_setup
|
||||||
|
|
Loading…
Add table
Reference in a new issue