Skip to content

Commit 4af1bca

Browse files
oech3oech3
authored andcommitted
build-gnu.sh: Enable test/df/no-mtab-status.sh
1 parent 1fca829 commit 4af1bca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

util/build-gnu.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# spell-checker:ignore (paths) abmon deref discrim eacces getlimits getopt ginstall inacc infloop inotify reflink ; (misc) INT_OFLOW OFLOW
66
# spell-checker:ignore baddecode submodules xstrtol distros ; (vars/env) SRCDIR vdir rcexp xpart dired OSTYPE ; (utils) greadlink gsed multihardlink texinfo CARGOFLAGS
7-
# spell-checker:ignore openat TOCTOU CFLAGS
7+
# spell-checker:ignore openat TOCTOU CFLAGS tmpfs
88

99
set -e
1010

@@ -171,6 +171,8 @@ grep -rl '\$abs_path_dir_' tests/*/*.sh | xargs -r "${SED}" -i "s|\$abs_path_dir
171171
"${SED}" -i 's/^print_ver_.*/require_selinux_/' tests/runcon/runcon-no-reorder.sh
172172
"${SED}" -i 's/^print_ver_.*/require_selinux_/' tests/chcon/chcon-fail.sh
173173

174+
# Avoid LD_PRELOAD (able to merge this to GNU?)
175+
sed -i -e 's|.*maybe LD_PRELOAD.*||' -e's|^export LD_PRELOAD=.*|function df { unshare -rm bash -c "mount -t tmpfs tmpfs /proc \&\& command df \"\$@\""; }|' tests/df/no-mtab-status.sh
174176
# We use coreutils yes
175177
"${SED}" -i "s|--coreutils-prog=||g" tests/misc/coreutils.sh
176178
# Different message

0 commit comments

Comments
 (0)