From: Jim Meyering Date: Sat, 17 Mar 2001 22:15:54 +0000 (+0000) Subject: Use ../envvar-check rather than open-coding the same tests. X-Git-Tag: FILEUTILS-4_0_42~12 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=10a6b91082a1e58d1086295c2f3fbe880952e1da;p=thirdparty%2Fcoreutils.git Use ../envvar-check rather than open-coding the same tests. --- diff --git a/tests/install/create-leading b/tests/install/create-leading index 8bcba57ae6..963e6a135d 100755 --- a/tests/install/create-leading +++ b/tests/install/create-leading @@ -8,26 +8,14 @@ if test "$VERBOSE" = yes; then ginstall --version fi +. $srcdir/../envvar-check + pwd=`pwd` dir=install-D$$ trap "cd $pwd; rm -rf $dir" 0 1 2 3 15 mkdir $dir -unset VERSION_CONTROL SIMPLE_BACKUP_SUFFIX - -if test "${VERSION_CONTROL+set}" = set; then - echo '$0: the VERSION_CONTROL envvar is set --' \ - ' unset it and rerun this test' >&2 - exit 1 -fi - -if test "${SIMPLE_BACKUP_SUFFIX+set}" = set; then - echo '$0: the SIMPLE_BACKUP_SUFFIX envvar is set --' \ - ' unset it and rerun this test' >&2 - >&2 - exit 1 -fi fail=0 cd $dir