From: Kefu Chai Date: Sun, 7 Feb 2016 12:36:58 +0000 (-0800) Subject: tests: ceph-disk.sh should compare with the resolved path X-Git-Tag: v10.0.4~24^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d267aaf8f3daedbb7b0243fedad6d3b0ad08ef71;p=ceph.git tests: ceph-disk.sh should compare with the resolved path Signed-off-by: Kefu Chai --- diff --git a/src/ceph-disk/tests/ceph-disk.sh b/src/ceph-disk/tests/ceph-disk.sh index 955873c30498..48c1f24633ec 100644 --- a/src/ceph-disk/tests/ceph-disk.sh +++ b/src/ceph-disk/tests/ceph-disk.sh @@ -133,7 +133,7 @@ function kill_daemons() { function command_fixture() { local command=$1 - [ $(which $command) = ../$command ] || [ $(which $command) = `readlink -f $(pwd)/$command` ] || return 1 + [ $(which $command) = `realpath ../$command` ] || [ $(which $command) = `realpath $(pwd)/$command` ] || return 1 cat > $DIR/$command <