Test suite: fix the test suite's generic event script.
authorMartin Schwenke <martin@meltin.net>
Wed, 29 Jul 2009 08:10:05 +0000 (18:10 +1000)
committerMartin Schwenke <martin@meltin.net>
Wed, 29 Jul 2009 08:10:05 +0000 (18:10 +1000)
Add a "stopped" case to log events and stop the event script from
failing with an unknown event.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 7f67f7395e2233f0bba2e9662404aad49e13f645)

ctdb/tests/events.d/00.test

index c5933be36afaca7a57d074e5a8865c380c48fc2a..fe9926b1a630ae331e8bb38d173952a6a7a04fe7 100755 (executable)
@@ -69,6 +69,11 @@ case $cmd in
        echo "ctdb shutdown event"
        exit 0
        ;;
+
+     stopped)
+       echo "ctdb stopped event"
+       exit 0
+       ;;
 esac
 
 echo "Invalid command $cmd"