Merge pull request #24538 from mrc0mmand/TEST-13-tweaks
test: forward nspawn logs to journal
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user