summaryrefslogtreecommitdiff
path: root/source4/setup
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-08-14 18:51:55 +0400
committerMatthieu Patou <mat@matws.net>2010-08-19 15:59:05 +0400
commit2cadfe8f2a3c0a4cf200288f0b6123eca866c510 (patch)
treee61199d86c56dfef244db4c33fa45becbc8abf97 /source4/setup
parented51bf5f68b77f97b00b30e1a6be3773841299b6 (diff)
downloadsamba-2cadfe8f2a3c0a4cf200288f0b6123eca866c510.tar.gz
samba-2cadfe8f2a3c0a4cf200288f0b6123eca866c510.tar.bz2
samba-2cadfe8f2a3c0a4cf200288f0b6123eca866c510.zip
unit tests: debug to ease locating pb, remove dir if exists to avoid error
Diffstat (limited to 'source4/setup')
-rwxr-xr-xsource4/setup/tests/blackbox_upgradeprovision.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/source4/setup/tests/blackbox_upgradeprovision.sh b/source4/setup/tests/blackbox_upgradeprovision.sh
index c1d3e46d81..f32d71de93 100755
--- a/source4/setup/tests/blackbox_upgradeprovision.sh
+++ b/source4/setup/tests/blackbox_upgradeprovision.sh
@@ -13,13 +13,19 @@ shift 1
. `dirname $0`/../../../testprogs/blackbox/subunit.sh
upgradeprovision() {
+ if [ -d $PREFIX/upgradeprovision ]; then
+ rm -fr $PREFIX/upgradeprovision
+ fi
$PYTHON ./setup/provision --domain=FOO --realm=foo.example.com --targetdir="$PREFIX/upgradeprovision" --server-role="dc"
- $PYTHON ./scripting/bin/upgradeprovision -s "$PREFIX/upgradeprovision/etc/smb.conf"
+ $PYTHON ./scripting/bin/upgradeprovision -s "$PREFIX/upgradeprovision/etc/smb.conf" --debugchange
}
upgradeprovision_full() {
+ if [ -d $PREFIX/upgradeprovision_full ]; then
+ rm -fr $PREFIX/upgradeprovision_full
+ fi
$PYTHON ./setup/provision --domain=FOO --realm=foo.example.com --targetdir="$PREFIX/upgradeprovision_full" --server-role="dc"
- $PYTHON ./scripting/bin/upgradeprovision -s "$PREFIX/upgradeprovision_full/etc/smb.conf" --full
+ $PYTHON ./scripting/bin/upgradeprovision -s "$PREFIX/upgradeprovision_full/etc/smb.conf" --full --debugchange
}
testit "upgradeprovision" upgradeprovision