diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-07-26 00:20:03 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-07-26 14:11:33 +0200 |
commit | 42fb45b7d98e9155d05f056609452f0ff2385333 (patch) | |
tree | b079515441f6003ab019e5f4adf9227106c1d8dd /t/tap-no-spurious-summary.sh | |
parent | ecbceb3e4cb88019e490c4814ca7a7382e4e2299 (diff) | |
download | automake-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-no-spurious-summary.sh')
-rwxr-xr-x | t/tap-no-spurious-summary.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/tap-no-spurious-summary.sh b/t/tap-no-spurious-summary.sh index 85e1bbaa2..13c577c7a 100755 --- a/t/tap-no-spurious-summary.sh +++ b/t/tap-no-spurious-summary.sh @@ -20,7 +20,7 @@ . ./defs || exit 1 -. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh" +. tap-setup.sh cat > all.test <<'END' 1..1 |