diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-02-17 22:45:59 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-03-04 08:35:05 +0100 |
commit | b9b637569960ae7eef5ee12436624af34a718a9a (patch) | |
tree | af41f8444ccd1aa92717e0d356f8180fea42f5b2 | |
parent | d5d88bd82b1cb51da09cf3b3dec40f180f5ed29f (diff) | |
download | samba-b9b637569960ae7eef5ee12436624af34a718a9a.tar.gz samba-b9b637569960ae7eef5ee12436624af34a718a9a.tar.bz2 samba-b9b637569960ae7eef5ee12436624af34a718a9a.zip |
selftest: Remove output directories to save disk space
Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rwxr-xr-x | source4/setup/tests/blackbox_upgradeprovision.sh | 18 | ||||
-rwxr-xr-x | testprogs/blackbox/upgradeprovision-oldrelease.sh | 12 |
2 files changed, 23 insertions, 7 deletions
diff --git a/source4/setup/tests/blackbox_upgradeprovision.sh b/source4/setup/tests/blackbox_upgradeprovision.sh index 8e4c2cc4f9..85c085fc1c 100755 --- a/source4/setup/tests/blackbox_upgradeprovision.sh +++ b/source4/setup/tests/blackbox_upgradeprovision.sh @@ -57,6 +57,14 @@ ldapcmp_full_sd() { $PYTHON $BINDIR/samba-tool ldapcmp tdb://$PREFIX/upgradeprovision_full/private/sam.ldb tdb://$PREFIX/upgradeprovision_reference/private/sam.ldb --two --sd --skip-missing-dn } +testit "upgradeprovision" upgradeprovision +testit "upgradeprovision_full" upgradeprovision_full +testit "upgradeprovision_reference" upgradeprovision_reference +testit "ldapcmp" ldapcmp +testit "ldapcmp_full" ldapcmp_full +testit "ldapcmp_sd" ldapcmp_sd +testit "ldapcmp_full_sd" ldapcmp_full_sd + if [ -d $PREFIX/upgradeprovision ]; then rm -fr $PREFIX/upgradeprovision fi @@ -65,12 +73,8 @@ if [ -d $PREFIX/upgradeprovision_full ]; then rm -fr $PREFIX/upgradeprovision_full fi -testit "upgradeprovision" upgradeprovision -testit "upgradeprovision_full" upgradeprovision_full -testit "upgradeprovision_reference" upgradeprovision_reference -testit "ldapcmp" ldapcmp -testit "ldapcmp_full" ldapcmp_full -testit "ldapcmp_sd" ldapcmp_sd -testit "ldapcmp_full_sd" ldapcmp_full_sd +if [ -d $PREFIX/upgradeprovision_reference ]; then + rm -fr $PREFIX/upgradeprovision_reference +fi exit $failed diff --git a/testprogs/blackbox/upgradeprovision-oldrelease.sh b/testprogs/blackbox/upgradeprovision-oldrelease.sh index 93565a1c1f..105483d70b 100755 --- a/testprogs/blackbox/upgradeprovision-oldrelease.sh +++ b/testprogs/blackbox/upgradeprovision-oldrelease.sh @@ -197,4 +197,16 @@ no test provision EOF fi +if [ -d $PREFIX_ABS/${RELEASE}_upgrade ]; then + rm -fr $PREFIX_ABS/${RELEASE}_upgrade +fi + +if [ -d $PREFIX_ABS/${RELEASE}_upgrade_full ]; then + rm -fr $PREFIX_ABS/${RELEASE}_upgrade_full +fi + +if [ -d $PREFIX_ABS/${RELEASE}_upgrade_reference ]; then + rm -fr $PREFIX_ABS/${RELEASE}_upgrade_reference +fi + exit $failed |