summaryrefslogtreecommitdiff
path: root/tests/install
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-03-17 22:15:54 +0000
committerJim Meyering <jim@meyering.net>2001-03-17 22:15:54 +0000
commit10a6b91082a1e58d1086295c2f3fbe880952e1da (patch)
tree61efbdb6d44b1c20c2b081f80a5e6df1b7dd765c /tests/install
parentd6a685271cdd8142fbd37904ca7d50e1fc2565b3 (diff)
downloadcoreutils-10a6b91082a1e58d1086295c2f3fbe880952e1da.tar.xz
Use ../envvar-check rather than open-coding the same tests.
Diffstat (limited to 'tests/install')
-rwxr-xr-xtests/install/create-leading16
1 files changed, 2 insertions, 14 deletions
diff --git a/tests/install/create-leading b/tests/install/create-leading
index 8bcba57ae..963e6a135 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