mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-06-13 10:41:36 +00:00
Robustify test configuration changes
Stop assuming whether an option is commented or not in the default britney.conf file for the tests.
This commit is contained in:
parent
3e7c808e1c
commit
a7c1fca7ef
@ -37,11 +37,11 @@ class TestAutoPkgTest(TestBase):
|
|||||||
|
|
||||||
# Disable boottests and set fake AMQP and Swift server
|
# Disable boottests and set fake AMQP and Swift server
|
||||||
for line in fileinput.input(self.britney_conf, inplace=True):
|
for line in fileinput.input(self.britney_conf, inplace=True):
|
||||||
if line.startswith('BOOTTEST_ENABLE'):
|
if 'BOOTTEST_ENABLE' in line:
|
||||||
print('BOOTTEST_ENABLE = no')
|
print('BOOTTEST_ENABLE = no')
|
||||||
elif line.startswith('#ADT_AMQP'):
|
elif 'ADT_AMQP' in line:
|
||||||
print('ADT_AMQP = file://%s' % self.fake_amqp)
|
print('ADT_AMQP = file://%s' % self.fake_amqp)
|
||||||
elif line.startswith('#ADT_SWIFT_URL'):
|
elif 'ADT_SWIFT_URL' in line:
|
||||||
print('ADT_SWIFT_URL = http://localhost:18085')
|
print('ADT_SWIFT_URL = http://localhost:18085')
|
||||||
else:
|
else:
|
||||||
sys.stdout.write(line)
|
sys.stdout.write(line)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user