mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ctdb-tests: Add tests for event scripts with multiple '.'s
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13070 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Wed Oct 18 10:19:48 CEST 2017 on sn-devel-144
This commit is contained in:
parent
7720ca0729
commit
3bc8880ea0
@ -37,6 +37,27 @@ required_result 1 <<EOF
|
||||
EOF
|
||||
unit_test test -x "${scriptdir}/prog"
|
||||
|
||||
cat > "$scriptdir/10.test.rpmnew" <<EOF
|
||||
#!/bin/sh
|
||||
|
||||
echo hello
|
||||
EOF
|
||||
chmod +x "$scriptdir/10.test.rpmnew"
|
||||
|
||||
# Invalid script with multiple '.'s
|
||||
ok <<EOF
|
||||
No event scripts found
|
||||
EOF
|
||||
unit_test run_event_test "$scriptdir" list
|
||||
|
||||
ok <<EOF
|
||||
Script disable 10.test.rpmnew completed with result=22
|
||||
EOF
|
||||
unit_test run_event_test "$scriptdir" disable 10.test.rpmnew
|
||||
|
||||
ok_null
|
||||
unit_test test -x "${scriptdir}/10.test.rpmnew"
|
||||
|
||||
cat > "$scriptdir/11.foo" <<EOF
|
||||
#!/bin/sh
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user