From d267aaf8f3daedbb7b0243fedad6d3b0ad08ef71 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 7 Feb 2016 04:36:58 -0800 Subject: [PATCH] tests: ceph-disk.sh should compare with the resolved path Signed-off-by: Kefu Chai --- src/ceph-disk/tests/ceph-disk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-disk/tests/ceph-disk.sh b/src/ceph-disk/tests/ceph-disk.sh index 955873c3049..48c1f24633e 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 <