From 42fb45b7d98e9155d05f056609452f0ff2385333 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Thu, 26 Jul 2012 00:20:03 +0200 Subject: tests: simplify sourcing of helper shell files Now that the early $PATH setup in both 'runtest' and AM_TESTS_ENVIRONMENT allow the '.' built-in to find to-be-sourced shell scripts in the 't/ax/' directory automatically, we can simplify several usages like: . "$am_testauxdir"/foo.sh to just: . foo.sh Also, because our test scripts run with the 'errexit' flag active, and because POSIX mandates that, when the '.' built-in is used, ... if no readable file is found, a non-interactive shell shall abort ... we can further simplify usages like: . "$am_testauxdir"/foo.sh || fatal_ "sourcing foo.sh" once again to to just: . foo.sh * ./defs, several tests: Adjusted. Signed-off-by: Stefano Lattarini --- t/tap-msg0-bailout.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/tap-msg0-bailout.sh') diff --git a/t/tap-msg0-bailout.sh b/t/tap-msg0-bailout.sh index cf8918c74..bdda865a0 100755 --- a/t/tap-msg0-bailout.sh +++ b/t/tap-msg0-bailout.sh @@ -21,7 +21,7 @@ . ./defs || exit 1 -. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh" +. tap-setup.sh echo 'Bail out! 0' > a.test echo 'Bail out! 0.0' > b.test -- cgit v1.2.1