From: Kefu Chai Date: Wed, 10 Feb 2016 13:30:46 +0000 (+0800) Subject: tests: ceph-disk.sh: should use "readlink -f" instead X-Git-Tag: v10.1.0~416^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7ba6889046cd9059b29949a3a44abeba6e98599e;p=ceph.git tests: ceph-disk.sh: should use "readlink -f" instead turns out trusty does not have `realpath` unless the package named `realpath` is installed. Reported-by: Joao Eduardo Luis Signed-off-by: Kefu Chai --- diff --git a/src/ceph-disk/tests/ceph-disk.sh b/src/ceph-disk/tests/ceph-disk.sh index 48c1f24633ec..b2b4faaa8bd3 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) = `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 <