tests - add scripts/common.sh
authorMartin Schwenke <martin@meltin.net>
Mon, 16 Apr 2012 04:32:55 +0000 (14:32 +1000)
committerMartin Schwenke <martin@meltin.net>
Mon, 16 Apr 2012 04:57:45 +0000 (14:57 +1000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit a7ad94fe9f2e773567dbb6500469dd2dd2f2f04b)

ctdb/tests/scripts/common.sh [new file with mode: 0644]

diff --git a/ctdb/tests/scripts/common.sh b/ctdb/tests/scripts/common.sh
new file mode 100644 (file)
index 0000000..581663c
--- /dev/null
@@ -0,0 +1,9 @@
+# Hey Emacs, this is a -*- shell-script -*- !!!  :-)
+
+# Common variables and functions for all CTDB tests.
+
+# Print a message and exit.
+die ()
+{
+    echo "$1" >&2 ; exit ${2:-1}
+}