diff options
author | Jim Meyering <meyering@redhat.com> | 2010-11-19 11:30:45 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-11-20 17:04:09 +0100 |
commit | d6d9855d714c377d8928582c622a2847ff4de71e (patch) | |
tree | 545c468d12de1419d8815e3346fa0f8f9a1a0aff /tests/t0200-gpt.sh | |
parent | 3bbdef285df7ccb47ab2448f41cdd55c08dc244c (diff) | |
download | parted-d6d9855d714c377d8928582c622a2847ff4de71e.tar.gz |
tests: switch from t-lib.sh to init.sh
* tests/init.cfg: Source t-local.sh.
* tests/t-local.sh: Replace trap so that we always run
scsi_debug_cleanup_, regardless of the cleanup_ function.
Replace each snippet like this:
-if test "$VERBOSE" = yes; then
- set -x
- parted --version
-fi
-
-: ${srcdir=.}
-. $srcdir/t-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../parted
Use this command (LHS elided, because it was too long):
git grep -l 'srcdir/t-lib.sh'|xargs perl -p0i -e \
's!...!. "\${srcdir=.}/init.sh"; path_prepend_ ../parted\n!'
* tests/t3310-flags.sh: Adjust manually, since the snippet
didn't quite match.
Diffstat (limited to 'tests/t0200-gpt.sh')
-rwxr-xr-x | tests/t0200-gpt.sh | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/t0200-gpt.sh b/tests/t0200-gpt.sh index 73e06bd..e74daa0 100755 --- a/tests/t0200-gpt.sh +++ b/tests/t0200-gpt.sh @@ -16,13 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -if test "$VERBOSE" = yes; then - set -x - parted --version -fi - -: ${srcdir=.} -. $srcdir/t-lib.sh +. "${srcdir=.}/init.sh"; path_prepend_ ../parted N=2M dev=loop-file |