From 8a06296283338c67ed18e35d0a807533aec4e0b3 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Tue, 28 Oct 2008 18:18:06 +1300 Subject: [PATCH] Add --cleanup option to test-build.sh to remove working files --- test-builds.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test-builds.sh b/test-builds.sh index 62da1dcad4..69e9692ba4 100755 --- a/test-builds.sh +++ b/test-builds.sh @@ -3,6 +3,12 @@ # Run specific build tests for a given OS environment. # +cleanup="no" +if test "${1}" = "--cleanup" ; then + cleanup="yes" + shift +fi + tmp="${1}" if test -e ./test-suite/buildtests/os-${tmp}.opts ; then echo "TESTING: ${tmp}" @@ -27,4 +33,8 @@ for f in `ls -1 ./test-suite/buildtests/layer*.opts` ; do ../test-suite/buildtest.sh ".${arg}" || ( grep -E "^ERROR|\ error:\ |No\ such" buildtest_*.log && exit 1 ) cd .. + if test "${cleanup}" = "yes" ; then + echo "REMOVE: btl${layer}" + rm -f -r btl${layer} + fi done -- 2.47.3