]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: ceph-disk.sh: should use "readlink -f" instead 7594/head
authorKefu Chai <kchai@redhat.com>
Wed, 10 Feb 2016 13:30:46 +0000 (21:30 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 10 Feb 2016 13:31:25 +0000 (21:31 +0800)
turns out trusty does not have `realpath` unless the package named
`realpath` is installed.

Reported-by: Joao Eduardo Luis <joao@suse.de>
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph-disk/tests/ceph-disk.sh

index 48c1f24633ec5af7d100245f16f3dd75c2b08641..b2b4faaa8bd34fe7a116d07504bc8d1ec60823e5 100644 (file)
@@ -133,7 +133,7 @@ function kill_daemons() {
 function command_fixture() {
     local command=$1
 
-    [ $(which $command) = `realpath ../$command` ] || [ $(which $command) = `realpath $(pwd)/$command` ] || return 1
+    [ $(which $command) = `readlink -f ../$command` ] || [ $(which $command) = `readlink -f $(pwd)/$command` ] || return 1
 
     cat > $DIR/$command <<EOF
 #!/bin/bash