mirror of
https://github.com/ceph/ceph
synced 2025-01-03 01:22:53 +00:00
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:
parent
be70c1ffe3
commit
39530536ff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user