summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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