From 7ba6889046cd9059b29949a3a44abeba6e98599e Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 10 Feb 2016 21:30:46 +0800 Subject: [PATCH] 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 --- 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 48c1f24633ec5..b2b4faaa8bd34 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 <