summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-05-21 18:48:55 +0200
committerDavid Sterba <dsterba@suse.cz>2015-05-21 18:48:55 +0200
commit9e3e423d688b5c825db83efd9c6ac5aa0355be55 (patch)
tree67ca22b1e17cfc438a32ac41a879de7fc0ac0586
parent7f1ccecfaaffcda4cfe11b315dbca0b899f4f8aa (diff)
btrfs-progs: tests: use readlink -f to resolve path
The utility 'realpath' from coreutils is new enough to be missing on my "old" reference build host. Signed-off-by: David Sterba <dsterba@suse.cz>
-rw-r--r--tests/convert-tests.sh4
-rwxr-xr-xtests/fsck-tests.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/convert-tests.sh b/tests/convert-tests.sh
index 7976f662..9234c7ba 100644
--- a/tests/convert-tests.sh
+++ b/tests/convert-tests.sh
@@ -7,8 +7,8 @@
unset TOP
unset LANG
LANG=C
-SCRIPT_DIR=$(dirname $(realpath $0))
-TOP=$(realpath $SCRIPT_DIR/../)
+SCRIPT_DIR=$(dirname $(readlink -f $0))
+TOP=$(readlink -f $SCRIPT_DIR/../)
TEST_MNT=${TEST_MNT:-$TOP/tests/mnt}
RESULTS="$TOP/tests/convert-tests-results.txt"
IMAGE="$TOP/tests/test.img"
diff --git a/tests/fsck-tests.sh b/tests/fsck-tests.sh
index fff1b421..b0ded6ae 100755
--- a/tests/fsck-tests.sh
+++ b/tests/fsck-tests.sh
@@ -8,8 +8,8 @@
unset TOP
unset LANG
LANG=C
-SCRIPT_DIR=$(dirname $(realpath $0))
-TOP=$(realpath $SCRIPT_DIR/../)
+SCRIPT_DIR=$(dirname $(readlink -f $0))
+TOP=$(readlink -f $SCRIPT_DIR/../)
TEST_DEV=${TEST_DEV:-}
TEST_MNT=${TEST_MNT:-$TOP/tests/mnt}
RESULTS="$TOP/tests/fsck-tests-results.txt"