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/dd | |
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/dd')
-rwxr-xr-x | tests/dd/misc | 2 | ||||
-rwxr-xr-x | tests/dd/not-rewound | 2 | ||||
-rwxr-xr-x | tests/dd/skip-seek2 | 2 | ||||
-rwxr-xr-x | tests/dd/unblock-sync | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/dd/misc b/tests/dd/misc index 04318f08a..4fdebc2cd 100755 --- a/tests/dd/misc +++ b/tests/dd/misc @@ -98,4 +98,4 @@ compare err_ok err || fail=1 test $fail -eq 0 && fail=$warn -(exit $fail); exit $fail +Exit $fail diff --git a/tests/dd/not-rewound b/tests/dd/not-rewound index b0bdf120e..8c811811e 100755 --- a/tests/dd/not-rewound +++ b/tests/dd/not-rewound @@ -33,4 +33,4 @@ case `cat out` in *) fail=1 ;; esac -(exit $fail); exit $fail +Exit $fail diff --git a/tests/dd/skip-seek2 b/tests/dd/skip-seek2 index 1381305f9..c831c85aa 100755 --- a/tests/dd/skip-seek2 +++ b/tests/dd/skip-seek2 @@ -40,4 +40,4 @@ case `cat out` in *) fail=1 ;; esac -(exit $fail); exit $fail +Exit $fail diff --git a/tests/dd/unblock-sync b/tests/dd/unblock-sync index b66653340..2adcbb7fd 100755 --- a/tests/dd/unblock-sync +++ b/tests/dd/unblock-sync @@ -37,4 +37,4 @@ EOF compare out exp || fail=1 -(exit $fail); exit $fail +Exit $fail |