diff options
author | Martin Schwenke <martin@meltin.net> | 2011-08-22 16:14:55 +1000 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2011-08-30 16:51:55 +1000 |
commit | fe730830a7c994d04824bfd7e0f909b008573880 (patch) | |
tree | fcacd3b6f31eb35a685fcd654b4646449699abab | |
parent | 7fc7ebb5acf36aff258f914b522e1345802a5413 (diff) | |
download | samba-fe730830a7c994d04824bfd7e0f909b008573880.tar.gz samba-fe730830a7c994d04824bfd7e0f909b008573880.tar.xz samba-fe730830a7c994d04824bfd7e0f909b008573880.zip |
Tests - eventscripts - nmap and netstat stubs can pretend they weren't found
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 47f2843b4db767bcc724d8f972e0c2a850d5826f)
-rwxr-xr-x | ctdb/tests/eventscripts/stubs/netstat | 7 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/stubs/nmap | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/ctdb/tests/eventscripts/stubs/netstat b/ctdb/tests/eventscripts/stubs/netstat index 5a3e3c7e77..f46c936519 100755 --- a/ctdb/tests/eventscripts/stubs/netstat +++ b/ctdb/tests/eventscripts/stubs/netstat @@ -2,6 +2,13 @@ prog="netstat" +# Pretty that we're the shell and that this command could not be +# found. +if [ "$FAKE_NETSTAT_NOT_FOUND" = "yes" ] ; then + echo "sh: ${prog}: command not found" >&2 + exit 127 +fi + usage () { cat >&2 <<EOF diff --git a/ctdb/tests/eventscripts/stubs/nmap b/ctdb/tests/eventscripts/stubs/nmap index 15eebe6901..f01fe32d9c 100755 --- a/ctdb/tests/eventscripts/stubs/nmap +++ b/ctdb/tests/eventscripts/stubs/nmap @@ -2,6 +2,13 @@ prog="nmap" +# Pretty that we're the shell and that this command could not be +# found. +if [ "$FAKE_NMAP_NOT_FOUND" = "yes" ] ; then + echo "sh: ${prog}: command not found" >&2 + exit 127 +fi + usage () { cat >&2 <<EOF |