diff options
author | Jim Meyering <meyering@redhat.com> | 2008-09-07 10:31:27 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-09-10 13:20:10 +0200 |
commit | 68561594ca022703e255b3ef5686f176317e5fd4 (patch) | |
tree | 2bb17f465ad51bb9bf212b871a95b877e558d2e0 /tests/df | |
parent | 22e5102f1961c5552d20c3791cbc99b6b001e83f (diff) | |
download | coreutils-68561594ca022703e255b3ef5686f176317e5fd4.tar.xz |
tests: use "Exit $fail", not (exit $fail); exit $fail
* tests/test-lib.sh (Exit): New function by Ralf Wildenhues in automake
http://git.sv.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=20594c08f63
* tests/**: Convert all uses:
This restrictive change converted the vast majority:
git grep -l '^(exit \$fail); exit \$fail$' \
| xargs perl -pi -e 's/'^\(exit \$fail\); exit \$fail$/Exit \$fail/'
And this did the rest, plus a few undesirable ones, so I manually
backed out the changes to ChangeLog-* and build-aux/check.mk:
git grep -l -E '\(exit [^)]+\); exit ' \
| xargs perl -pi -e 's/\(exit (.+?)\); exit \1/Exit $1/'
Diffstat (limited to 'tests/df')
-rwxr-xr-x | tests/df/total | 2 | ||||
-rwxr-xr-x | tests/df/total-awk | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/df/total b/tests/df/total index 186bf8de3..6d8266386 100755 --- a/tests/df/total +++ b/tests/df/total @@ -39,4 +39,4 @@ $EGREP "$RE_TOTAL" tmp && fail=1 df --total | $EGREP "$RE_TOTAL" || fail=1 df -i --total | $EGREP "$RE_TOTAL" || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/df/total-awk b/tests/df/total-awk index d569f26df..a10a03daf 100755 --- a/tests/df/total-awk +++ b/tests/df/total-awk @@ -77,4 +77,4 @@ $AWK -f compute_sum.awk tmp > out1 || fail=1 $AWK -f parse_total.awk tmp > out2 || fail=1 compare out1 out2 || fail=1 -(exit $fail); exit $fail +Exit $fail |