From: Karel Zak Date: Wed, 18 Apr 2012 11:05:55 +0000 (+0200) Subject: tests: remove LD_LIBRARY_PATH from swapon tests X-Git-Tag: v2.22-rc1~519 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f947ae75b62cf86ee83db52c27a17137d736b5b7;p=thirdparty%2Futil-linux.git tests: remove LD_LIBRARY_PATH from swapon tests Signed-off-by: Karel Zak --- diff --git a/tests/commands.sh.in b/tests/commands.sh.in index b01ebc7296..2b2a5771e5 100644 --- a/tests/commands.sh.in +++ b/tests/commands.sh.in @@ -30,8 +30,6 @@ TS_HELPER_LOGINDEFS="$top_builddir/login-utils/test_logindefs" # TODO: use partx TS_HELPER_PARTITIONS="$top_builddir/libblkid/samples/partitions" -U_L_LIBRARY_PATH="$top_builddir/libblkid/src/.libs:$top_builddir/libuuid/src/.libs" - # paths to commands if [ -x "$top_builddir/sys-utils/mount" ]; then TS_CMD_MOUNT=${TS_CMD_MOUNT:-"$top_builddir/sys-utils/mount"} @@ -42,8 +40,8 @@ else TS_CMD_MTABLOCK=${TS_CMD_MTABLOCK:-"$top_builddir/mount/mtab_lock_test"} fi -TS_CMD_SWAPON=${TS_CMD_SWAPON:-"$top_builddir/sys-utils/.libs/swapon"} -TS_CMD_SWAPOFF=${TS_CMD_SWAPOFF:-"$top_builddir/sys-utils/.libs/swapoff"} +TS_CMD_SWAPON=${TS_CMD_SWAPON:-"$top_builddir/sys-utils/swapon"} +TS_CMD_SWAPOFF=${TS_CMD_SWAPOFF:-"$top_builddir/sys-utils/swapoff"} TS_CMD_LOSETUP=${TS_CMD_LOSETUP:-"$top_builddir/sys-utils/losetup"} TS_CMD_MKSWAP=${TS_CMD_MKSWAP:-"$top_builddir/disk-utils/mkswap"} diff --git a/tests/functions.sh b/tests/functions.sh index 6556e4ed2f..74cde97b3b 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -387,21 +387,6 @@ function ts_is_mounted { return 1 } -function ts_swapoff { - local DEV="$1" - - # swapoff doesn't exist in build tree - if [ ! -x "$TS_CMD_SWAPOFF" ]; then - ln -sf $TS_CMD_SWAPON $TS_CMD_SWAPOFF - REMSWAPOFF="true" - fi - LD_LIBRARY_PATH="$U_L_LIBRARY_PATH" \ - $TS_CMD_SWAPOFF $DEV 2>&1 >> $TS_OUTPUT - if [ -n "$REMSWAPOFF" ]; then - rm -f $TS_CMD_SWAPOFF - fi -} - function ts_fstab_open { echo "#