test: run the generators with debug log level

unless requested otherwise.
This commit is contained in:
Frantisek Sumsal
2023-04-07 11:37:39 +02:00
parent 0607a9f9da
commit 53c5dc5446
3 changed files with 1 additions and 5 deletions

View File

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

View File

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

View File

@@ -5,8 +5,6 @@ set -o pipefail
: >/failed
systemctl log-level debug
for script in "${0%.sh}".*.sh; do
echo "Running $script"
"./$script"