def run_cleanup_subcommand(dummy_args):

    LOGGER.debug("Running cleanup subcommand:")

    dblist = dbutil.TESTSERVER.dblist()
    test_dblist = [db for db in dblist if re.match(TESTDB_PATTERN, db)]

    print "Dropping temporary test databases:"
    if test_dblist:
        for dbname in test_dblist:
            print "    %s" % dbname
            dbutil.TESTSERVER.drop(dbname)
    else:
        print "    nothing to do."
Run the cleanup subcommand.
dataset/ETHPy150Open GeoscienceAustralia/agdc/src/testdb.py/run_cleanup_subcommand