From 5ddf10071d94acf2ae0e69e187641f22cce0199a Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Sat, 27 Oct 2012 16:41:39 +0200 Subject: tests: prefer including 'test-init.sh' rather than './defs' This is a follow-up to today's commit v1.12.4-22-g0610fc8, "tests: prepare to move ./defs to t/ax/test-init.sh" * All tests: To run the common setup, use the command: . test-init.sh instead of the older, "historical" one: . ./defs || exit 1 Note that the "|| exit 1" wasn't really useful, since the 'errexit' shell flag is in effect in both './defs' and 'test-init.sh', and all the known shells that are good enough to run the automake testsuite do automatically exit with error when a sourced file cannot be found (at least, they do so in non-interactive mode, which is the only mode that concerns us in the testsuite). * t/ax/tap-summary-aux.sh, t/ax/testsuite-summary-checks.sh: Likewise. * gen-testsuite-part: Do the same in the generated tests. Signed-off-by: Stefano Lattarini --- t/parallel-tests-trailing-whitespace.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/parallel-tests-trailing-whitespace.sh') diff --git a/t/parallel-tests-trailing-whitespace.sh b/t/parallel-tests-trailing-whitespace.sh index e8e4203ca..3d729c8ec 100755 --- a/t/parallel-tests-trailing-whitespace.sh +++ b/t/parallel-tests-trailing-whitespace.sh @@ -18,7 +18,7 @@ # - trailing whitespace in TESTS # GNU make 3.80 may expand trailing white space to '.log'. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_OUTPUT -- cgit v1.2.1