diff options
author | Martin Schwenke <martin@meltin.net> | 2015-03-06 11:36:18 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2015-03-06 04:40:07 +0100 |
commit | f6efe0c5c2378f477e528ac9c6571a732aa2c49b (patch) | |
tree | 72b35355ea6db50333faeb498890089cff2331e4 /ctdb | |
parent | bccf5c9a7bc18b859f262307ab6a2b6edaca0588 (diff) | |
download | samba-f6efe0c5c2378f477e528ac9c6571a732aa2c49b.tar.gz |
ctdb-tests: Check for readable, not executable, script
Scripts in eventscript unit tests are run under an explicitly
specified shell so they do not need to be executable. Checking that
the script is executable breaks on scripts that are installed without
the execute bit set, such as disabled eventscripts.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Fri Mar 6 04:40:07 CET 2015 on sn-devel-104
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/tests/eventscripts/scripts/local.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/tests/eventscripts/scripts/local.sh b/ctdb/tests/eventscripts/scripts/local.sh index ed99985b8e3..219bbee51c9 100644 --- a/ctdb/tests/eventscripts/scripts/local.sh +++ b/ctdb/tests/eventscripts/scripts/local.sh @@ -1099,7 +1099,7 @@ define_test () script_dir="${CTDB_BASE}" esac - [ -x "${script_dir}/${script}" ] || \ + [ -r "${script_dir}/${script}" ] || \ die "Internal error - unable to find script \"${script_dir}/${script}\"" printf "%-17s %-10s %-4s - %s\n\n" "$script" "$event" "$_num" "$desc" |