From: Danny Al-Gaaf Date: Thu, 4 Sep 2014 10:23:27 +0000 (+0200) Subject: test/ceph-disk.sh: resolve symlinks before check X-Git-Tag: v0.80.8~5^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=77d393024f9d867b574b8ec8e15ec48a1a291511;p=ceph.git test/ceph-disk.sh: resolve symlinks before check Make sure symlinks are resolved in command_fixture() before compare result of which command and the current path. Signed-off-by: Danny Al-Gaaf (cherry picked from commit 8ea86dfa7c4a3d7e089cf9d4e49586657875f851) --- diff --git a/src/test/ceph-disk.sh b/src/test/ceph-disk.sh index 7aff8e69c520..7100161ed449 100755 --- a/src/test/ceph-disk.sh +++ b/src/test/ceph-disk.sh @@ -84,7 +84,7 @@ function kill_daemons() { function command_fixture() { local command=$1 - [ $(which $command) = ./$command ] || [ $(which $command) = $(pwd)/$command ] || return 1 + [ $(which $command) = ./$command ] || [ $(which $command) = `readlink -f $(pwd)/$command` ] || return 1 cat > $DIR/$command <