mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
test: run the generators with debug log level
unless requested otherwise.
This commit is contained in:
@@ -56,6 +56,6 @@ run_and_list() {
|
||||
local out_dir="${2:?}"
|
||||
|
||||
rm -fr "${out_dir:?}"/*
|
||||
"$generator" "$out_dir"
|
||||
SYSTEMD_LOG_LEVEL="${SYSTEMD_LOG_LEVEL:-debug}" "$generator" "$out_dir"
|
||||
ls -lR "$out_dir"
|
||||
}
|
||||
|
||||
@@ -7,8 +7,6 @@ set -o pipefail
|
||||
# shellcheck source=test/units/generator-utils.sh
|
||||
. "$(dirname "$0")/generator-utils.sh"
|
||||
|
||||
export SYSTEMD_LOG_LEVEL=debug
|
||||
|
||||
GENERATOR_BIN="/usr/lib/systemd/system-generators/systemd-fstab-generator"
|
||||
NETWORK_FS_RX="^(afs|ceph|cifs|gfs|gfs2|ncp|ncpfs|nfs|nfs4|ocfs2|orangefs|pvfs2|smb3|smbfs|davfs|glusterfs|lustre|sshfs)$"
|
||||
OUT_DIR="$(mktemp -d /tmp/fstab-generator.XXX)"
|
||||
|
||||
@@ -5,8 +5,6 @@ set -o pipefail
|
||||
|
||||
: >/failed
|
||||
|
||||
systemctl log-level debug
|
||||
|
||||
for script in "${0%.sh}".*.sh; do
|
||||
echo "Running $script"
|
||||
"./$script"
|
||||
|
||||
Reference in New Issue
Block a user