summaryrefslogtreecommitdiff
path: root/tests/git-backup-on-error-single-backup.teardown
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@codethink.co.uk>2020-09-16 23:49:23 +0100
committerBen Hutchings <ben.hutchings@codethink.co.uk>2020-09-16 23:55:36 +0100
commitdfd9a7d9ad8be7b467f2203ccaa7b3e8ccb91f4a (patch)
treeb48f2b5e8c06df31968461113ccfcbe682537517 /tests/git-backup-on-error-single-backup.teardown
parentc356e375704e3951a6fa7db1097cef6182383047 (diff)
downloadlorry-dfd9a7d9ad8be7b467f2203ccaa7b3e8ccb91f4a.tar.gz
tests: Clear out $DATADIR after every test
Some tests have a teardown script that removes their temporary files, but most do not. To avoid interference or dependencies between tests, use a global teardown script that removes almost everything in $DATADIR. It excludes git-upstream, which is intentionally set up once and read by multiple tests.
Diffstat (limited to 'tests/git-backup-on-error-single-backup.teardown')
-rwxr-xr-xtests/git-backup-on-error-single-backup.teardown21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/git-backup-on-error-single-backup.teardown b/tests/git-backup-on-error-single-backup.teardown
deleted file mode 100755
index 8b5bef3..0000000
--- a/tests/git-backup-on-error-single-backup.teardown
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-#
-# Tests when a git mirror fails that it keeps the backups around
-#
-# Copyright (C) 2012-2013 Codethink Limited
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-
-rm -r "$DATADIR/git-backup-test-repo.log" "$DATADIR/work-dir"