TESTID="${TESTNAME}_$UVERSION"
echo "$TESTID"
TESTDIR="testdir_${TESTNAME}_$VERSION"
-export WIZARD_ADMIN_NAME="admin"
-export WIZARD_ADMIN_PASSWORD="wizard"
+if [ "$WIZARD_ADMIN_NAME" == "" ]; then
+ export WIZARD_ADMIN_NAME="admin"
+fi
+if [ "$WIZARD_ADMIN_PASSWORD" == "" ]; then
+ export WIZARD_ADMIN_PASSWORD="wizard"
+fi
if [ -e "config" ]; then
source ./config
"""Generic error class for this module."""
pass
-class NonfatalFailure(Error):
- """Bad parameters given to installer."""
- pass
+class RecoverableFailure(Error):
+ """
+ The installer failed, but we were able to determine what the
+ error was, and should give the user a second chance if we were
+ running interactively.
+ """
+ #: List of the errors that were found.
+ errors = None
+ def __init__(self, errors):
+ self.errors = errors
+ def __str__(self):
+ return """Installation failed due to the following errors: %s""" % ", ".join(self.errors)
class NoRepositoryError(Error):
"""
if result.find("Installation successful") == -1:
if not error_messages:
raise install.Failure()
- raise app.NonfatalFailure(error_messages)
+ raise app.RecoverableFailure(error_messages)
os.rename('config/LocalSettings.php', 'LocalSettings.php')
def upgrade(self, d, version, options):
sh = shell.Shell()