From 72d96e27b3a8cb990c00422289b42e9b90c44b18 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Wed, 28 May 2014 18:36:34 +0200 Subject: tests/rpm.t: delete the working directory in case it exists Change-Id: Iea15d296e22a36b119f04aff61a975811054c20b BUG: 1092850 Signed-off-by: Niels de Vos Reviewed-on: http://review.gluster.org/7916 Tested-by: Gluster Build System Reviewed-by: Kaleb KEITHLEY Reviewed-by: Vijay Bellur --- tests/basic/rpm.t | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/basic') 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 -- cgit