test setup: move actual calling of testsuite setup in ./defs
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 25 Jul 2012 19:12:30 +0000 (21:12 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 26 Jul 2012 12:11:37 +0000 (14:11 +0200)
* t/ax/test-init.sh: Move call to 'am_test_setup' ...
* defs: ... here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
defs
t/ax/test-init.sh

diff --git a/defs b/defs
index 01e90b8..93b0bfd 100644 (file)
--- a/defs
+++ b/defs
@@ -18,6 +18,8 @@
 # Source the shell static setup and variable definitions.
 . test-defs.sh; test $? -eq 0 || exit 99
 
-# Source the actual test initialization and setup code, and return
-# control to the test script that is sourcing us.
+# Source the actual code for test initialization and setup.
 . test-init.sh
+
+# Run that setup, and return control to the test script sourcing us.
+am_test_setup
index 7817fe9..1cf5f5f 100644 (file)
@@ -1028,9 +1028,3 @@ am_test_setup ()
   set -x
   pwd
 }
-
-## ---------------- ##
-##  Ready to go...  ##
-## ---------------- ##
-
-am_test_setup