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 <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2014-06-24 19:54:17 +02:00
parent be70c1ffe3
commit 39530536ff

View File

@ -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 <<EOF
#!/bin/bash