~justin-fathomdb/nova/schedule-compute-near-volume

« back to all changes in this revision

Viewing changes to run_tests.py

Make tests start with a clean database for every test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
import sys
62
62
 
63
63
from nose import config
 
64
from nose import core
64
65
from nose import result
65
 
from nose import core
66
66
 
67
67
from nova import log as logging
68
68
from nova.tests import fake_flags
280
280
 
281
281
if __name__ == '__main__':
282
282
    logging.setup()
283
 
    testdir = os.path.abspath(os.path.join("nova", "tests"))
284
 
    testdb = os.path.join(testdir, "tests.sqlite")
285
 
    if os.path.exists(testdb):
286
 
        os.unlink(testdb)
287
283
    # If any argument looks like a test name but doesn't have "nova.tests" in
288
284
    # front of it, automatically add that so we don't have to type as much
289
285
    argv = []
293
289
        else:
294
290
            argv.append(x)
295
291
 
 
292
    testdir = os.path.abspath(os.path.join("nova", "tests"))
296
293
    c = config.Config(stream=sys.stdout,
297
294
                      env=os.environ,
298
295
                      verbosity=3,