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

« back to all changes in this revision

Viewing changes to bin/nova-dhcpbridge

Make tests start with a clean database for every test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
    logging.setup()
106
106
    interface = os.environ.get('DNSMASQ_INTERFACE', 'br0')
107
107
    if int(os.environ.get('TESTING', '0')):
108
 
        FLAGS.fake_rabbit = True
109
 
        FLAGS.network_size = 16
110
 
        FLAGS.connection_type = 'fake'
111
 
        FLAGS.fake_network = True
112
 
        FLAGS.auth_driver = 'nova.auth.dbdriver.DbDriver'
113
 
        FLAGS.num_networks = 5
114
 
        path = os.path.abspath(os.path.join(os.path.dirname(__file__),
115
 
                                            '..',
116
 
                                            'nova',
117
 
                                            'tests',
118
 
                                            'tests.sqlite'))
119
 
        FLAGS.sql_connection = 'sqlite:///%s' % path
 
108
        from nova.tests import fake_flags
120
109
    action = argv[1]
121
110
    if action in ['add', 'del', 'old']:
122
111
        mac = argv[2]