Esempio n. 1
0
def test_all(username='******', password='******', alternate=False):
    try:
        all()
        try:
            setup_mysql()
        except:
            print "Warning problems setting config mysql!"
        setup_demodata()
        restart_apache()
        restart_tomcat()
        msg_sleep(10, "Wait for install to settle")
        if alternate:
            new_test()
        else:
            test()
        if env.target in ["regression", "local", "test"]:
            db_test(username, password)
    except:
        e = sys.exc_info()[0]
        print e
        sys.exit(1)
    finally:
        clean()
Esempio n. 2
0
def restore_database_for_descructive_tests():
    if env.target in ["regression", "test", "demo"]:
        setup_demodata()