From 6b0d888e0729e7f7922d9b0a76dc27bae724e812 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Wed, 19 Dec 2012 16:40:11 +0100 Subject: tests: let basic/rpm.t cleanup after itself when not in DEBUG-mode The temporary working directory unders /var/tmp is not cleaned when debugging of the test is disabled. The logic should be the othetr way around. With this correction, the output while running is reduced as well. Nothing of the output contains useful information and clutters the testing output for no reason. BUG: 888743 Change-Id: Id7616ad41873f61fd5d435b380f98068f313d5a6 Signed-off-by: Niels de Vos Reviewed-on: http://review.gluster.org/4340 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- tests/basic/rpm.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/basic/rpm.t b/tests/basic/rpm.t index 7ef9ac57057..45818ef68d9 100755 --- a/tests/basic/rpm.t +++ b/tests/basic/rpm.t @@ -17,11 +17,11 @@ REPO=${PWD} COMMIT=$(git describe) mkdir ${RESULT_DIR}/sources cd ${RESULT_DIR}/sources -git clone -s file://${REPO} . -git checkout ${COMMIT} +git clone -q -s file://${REPO} . +git checkout -q -b rpm-test ${COMMIT} # build the .tar.gz -[ -e configure ] || ./autogen.sh +[ -e configure ] || ./autogen.sh 2>&1 > /dev/null TEST ./configure --enable-fusermount TEST make dist @@ -72,7 +72,7 @@ done # dependencies on the build-server :-/ # only remove ${RESULT_DIR} if we're not debugging -[ "${DEBUG}" != "0" ] && rm -rf ${RESULT_DIR} +[ "${DEBUG}" = "0" ] && rm -rf ${RESULT_DIR} cleanup -- cgit