From f947ae75b62cf86ee83db52c27a17137d736b5b7 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 18 Apr 2012 13:05:55 +0200 Subject: [PATCH] tests: remove LD_LIBRARY_PATH from swapon tests Signed-off-by: Karel Zak --- tests/commands.sh.in | 6 ++---- tests/functions.sh | 15 --------------- tests/ts/swapon/devname | 5 ++--- tests/ts/swapon/fixpgsz | 5 ++--- tests/ts/swapon/fixsig | 5 ++--- tests/ts/swapon/label | 5 ++--- tests/ts/swapon/uuid | 5 ++--- 7 files changed, 12 insertions(+), 34 deletions(-) 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 "#