Merge pull request #24538 from mrc0mmand/TEST-13-tweaks

test: forward nspawn logs to journal
This commit is contained in:
Luca Boccassi
2022-09-03 00:16:36 +01:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ test_append_files() {
busybox="$(type -P busybox-static || type -P busybox)"
inst_simple "$busybox" "$(dirname "$busybox")/busybox"
if selinuxenabled >/dev/null; then
if command -v selinuxenabled >/dev/null && selinuxenabled; then
image_install selinuxenabled
cp -ar /etc/selinux "$workspace/etc/selinux"
fi
+2 -1
View File
@@ -5,6 +5,7 @@ set -eux
set -o pipefail
export SYSTEMD_LOG_LEVEL=debug
export SYSTEMD_LOG_TARGET=journal
# check cgroup-v2
is_v2_supported=no
@@ -111,7 +112,7 @@ EOF
}
function check_selinux {
if ! selinuxenabled; then
if ! command -v selinuxenabled >/dev/null || ! selinuxenabled; then
echo >&2 "SELinux is not enabled, skipping SELinux-related tests"
return 0
fi