Esempio n. 1
0
    def tearDown(self):
        super(InstallTest, self).tearDown()
        if os.path.exists(TEMP_MONGO_INSTALL_DIR):
            print ("tearDown(): Deleting temp mongoDBInstallationsDirectory=%s" %
                   TEMP_MONGO_INSTALL_DIR)
            shutil.rmtree(TEMP_MONGO_INSTALL_DIR)

        print ("tearDown(): Resetting  mongoDBInstallationsDirectory back to"
               " '%s'" % MONGO_INSTALL_DIR)

        mongoctl.set_mongodb_installs_dir(MONGO_INSTALL_DIR)
Esempio n. 2
0
    def setUp(self):
        print ("setUp(): Temporarily setting mongoDBInstallationsDirectory=%s" %
               TEMP_MONGO_INSTALL_DIR)

        mongoctl.set_mongodb_installs_dir(TEMP_MONGO_INSTALL_DIR)
        super(InstallTest, self).setUp()