diff options
| author | Martin Schwenke <martin@meltin.net> | 2009-10-20 16:44:44 +1100 |
|---|---|---|
| committer | Martin Schwenke <martin@meltin.net> | 2009-10-20 16:44:44 +1100 |
| commit | 469ee69363db47ca4e0a307e85c69a06b05a5e33 (patch) | |
| tree | 764a031d9526bc3a7a63896b903f9f66e0a216b3 /ctdb/tests/scripts | |
| parent | b77094e89734a1dde849f7c9d00f5179c9197337 (diff) | |
Test suite: add -x option to ctdb_init() function.
This facilitates tracing of tests.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 1f906bd3476e7cebf217e35b5477d6a7bb615a0c)
Diffstat (limited to 'ctdb/tests/scripts')
| -rw-r--r-- | ctdb/tests/scripts/ctdb_test_functions.bash | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/tests/scripts/ctdb_test_functions.bash b/ctdb/tests/scripts/ctdb_test_functions.bash index 3da0f0effd..40d8453e56 100644 --- a/ctdb/tests/scripts/ctdb_test_functions.bash +++ b/ctdb/tests/scripts/ctdb_test_functions.bash @@ -120,6 +120,7 @@ Options: --category show the test category (ACL, CTDB, Samba ...). -d, --description show test case description. --summary show short test case summary. + -x trace test using set -x EOF exit $status @@ -141,7 +142,7 @@ ctdb_test_cmd_options() -v|--version) ctdb_test_version ;; --category) echo "CTDB" ;; -d|--description) test_info ;; - --summary) test_info | head -1 ;; + -x) set -x ; return 0 ;; *) echo "Error: Unknown parameter = $1" echo |
