]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: ceph-disk.sh should compare with the resolved path 7554/head
authorKefu Chai <kchai@redhat.com>
Sun, 7 Feb 2016 12:36:58 +0000 (04:36 -0800)
committerKefu Chai <kchai@redhat.com>
Sun, 7 Feb 2016 12:39:24 +0000 (04:39 -0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph-disk/tests/ceph-disk.sh

index 955873c3049827f1ed0929b1e19f91d24f273483..48c1f24633ec5af7d100245f16f3dd75c2b08641 100644 (file)
@@ -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 <<EOF
 #!/bin/bash