automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 25/32] tests: source test defs in the generic test lib


From: Stefano Lattarini
Subject: [PATCH 25/32] tests: source test defs in the generic test lib
Date: Thu, 26 Jul 2012 14:04:51 +0200

* t/ax/test-lib.sh: That is, here ...
* defs: ... rather than here.

Signed-off-by: Stefano Lattarini <address@hidden>
---
 defs             | 3 ---
 t/ax/test-lib.sh | 5 +++++
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/defs b/defs
index ea6c84c..1ee1116 100644
--- a/defs
+++ b/defs
@@ -17,9 +17,6 @@
 
 set -e
 
-# Source the shell static setup and variable definitions.
-. test-defs.sh; test $? -eq 0 || exit 99
-
 # Source the actual code for test initialization and setup.
 . test-lib.sh
 . am-test-lib.sh
diff --git a/t/ax/test-lib.sh b/t/ax/test-lib.sh
index 1efcaa9..f711f1e 100644
--- a/t/ax/test-lib.sh
+++ b/t/ax/test-lib.sh
@@ -31,6 +31,11 @@ nl='
 # is defined initially, so that saving and restoring $IFS works.
 IFS=$sp$tab$nl
 
+# Source extra configuration.
+. test-defs.sh
+# And fail hard if something went wrong.
+test $? -eq 0 || exit 99
+
 # We use a trap below for cleanup.  This requires us to go through
 # hoops to get the right exit status transported through the signal.
 # Turn off errexit here so that we don't trip the bug with OSF1/Tru64
-- 
1.7.12.rc0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]