summaryrefslogtreecommitdiffstats
path: root/tests/functions.sh
diff options
context:
space:
mode:
authorKarel Zak2012-04-18 13:05:55 +0200
committerKarel Zak2012-04-18 13:05:55 +0200
commitf947ae75b62cf86ee83db52c27a17137d736b5b7 (patch)
tree938026bcdc17ec2e44c831ae5226162d39c846fe /tests/functions.sh
parentswapon: minor coding style changes (diff)
downloadkernel-qcow2-util-linux-f947ae75b62cf86ee83db52c27a17137d736b5b7.tar.gz
kernel-qcow2-util-linux-f947ae75b62cf86ee83db52c27a17137d736b5b7.tar.xz
kernel-qcow2-util-linux-f947ae75b62cf86ee83db52c27a17137d736b5b7.zip
tests: remove LD_LIBRARY_PATH from swapon tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/functions.sh')
-rw-r--r--tests/functions.sh15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/functions.sh b/tests/functions.sh
index 6556e4ed2..74cde97b3 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 "# <!-- util-linux test entry" >> /etc/fstab
}