summaryrefslogtreecommitdiffstats
path: root/tests/basic
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2014-05-28 18:36:34 +0200
committerVijay Bellur <vbellur@redhat.com>2014-07-07 10:38:34 -0700
commit72d96e27b3a8cb990c00422289b42e9b90c44b18 (patch)
tree5de41a68f81b37236edc97eab036127897a8fd1c /tests/basic
parentec74ceedaa41047b88d270c00eeb071b73e19664 (diff)
tests/rpm.t: delete the working directory in case it exists
Change-Id: Iea15d296e22a36b119f04aff61a975811054c20b BUG: 1092850 Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/7916 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/basic')
-rwxr-xr-xtests/basic/rpm.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/basic/rpm.t b/tests/basic/rpm.t
index bdc23b2d04f..db90398a152 100755
--- a/tests/basic/rpm.t
+++ b/tests/basic/rpm.t
@@ -50,6 +50,9 @@ fi
# checkout the sources to a new directory to execute ./configure and all
REPO=${PWD}
COMMIT=$(git describe)
+
+# make sure to cleanup in case DEBUG was enabled in a previous run
+[ -d rpmbuild-mock.d ] && rm -rf rpmbuild-mock.d
mkdir rpmbuild-mock.d
pushd rpmbuild-mock.d 2>/dev/null