summaryrefslogtreecommitdiff
path: root/t/tap-deps.sh
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-07-26 00:20:03 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-07-26 14:11:33 +0200
commit42fb45b7d98e9155d05f056609452f0ff2385333 (patch)
treeb079515441f6003ab019e5f4adf9227106c1d8dd /t/tap-deps.sh
parentecbceb3e4cb88019e490c4814ca7a7382e4e2299 (diff)
downloadautomake-42fb45b7d98e9155d05f056609452f0ff2385333.tar.gz
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 <stefano.lattarini@gmail.com>
Diffstat (limited to 't/tap-deps.sh')
-rwxr-xr-xt/tap-deps.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/tap-deps.sh b/t/tap-deps.sh
index ee76e938f..8e84a63bc 100755
--- a/t/tap-deps.sh
+++ b/t/tap-deps.sh
@@ -26,7 +26,7 @@ b.log: a.log
c.log: b.log
END
-. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
+. tap-setup.sh
cat > a.test << 'END'
#!/bin/sh