From 39530536ff923b91899f6303507c283b78040a20 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 24 Jun 2014 19:54:17 +0200 Subject: [PATCH] test/ceph-disk.sh: fix for SUSE On SUSE 'which' returns always the full path of (shell) commands and not e.g. './ceph-conf' as on Debian. Add check also for full path returned by which. Signed-off-by: Danny Al-Gaaf --- src/test/ceph-disk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/ceph-disk.sh b/src/test/ceph-disk.sh index 3e95bf911a5a..91e99ec4c9c3 100755 --- a/src/test/ceph-disk.sh +++ b/src/test/ceph-disk.sh @@ -83,7 +83,7 @@ function kill_daemons() { function command_fixture() { local command=$1 - [ $(which $command) = ./$command ] || return 1 + [ $(which $command) = ./$command ] || [ $(which $command) = $(pwd)/$command ] || return 1 cat > $DIR/$command <