Skip to content

Commit 621f8bf

Browse files
authored
build-gnu.sh: Enable test/df/no-mtab-status.sh
1 parent 1fca829 commit 621f8bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

util/build-gnu.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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
175+
sed -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)