Update the test config with a function
Change-Id: I9709409326590b2cae606330c3cd173fb6a5ebe2
diff --git a/tests/test_cloner.py b/tests/test_cloner.py
index 0c6d869..82d1812 100644
--- a/tests/test_cloner.py
+++ b/tests/test_cloner.py
@@ -42,8 +42,8 @@
super(TestCloner, self).setUp()
self.workspace_root = os.path.join(self.test_root, 'workspace')
- self.config.set('zuul', 'layout_config',
- 'tests/fixtures/layout-cloner.yaml')
+ self.updateConfigLayout(
+ 'tests/fixtures/layout-cloner.yaml')
self.sched.reconfigure(self.config)
self.registerJobs()
@@ -506,8 +506,8 @@
def test_periodic(self):
self.worker.hold_jobs_in_build = True
self.create_branch('org/project', 'stable/havana')
- self.config.set('zuul', 'layout_config',
- 'tests/fixtures/layout-timer.yaml')
+ self.updateConfigLayout(
+ 'tests/fixtures/layout-timer.yaml')
self.sched.reconfigure(self.config)
self.registerJobs()
@@ -521,8 +521,8 @@
self.worker.hold_jobs_in_build = False
# Stop queuing timer triggered jobs so that the assertions
# below don't race against more jobs being queued.
- self.config.set('zuul', 'layout_config',
- 'tests/fixtures/layout-no-timer.yaml')
+ self.updateConfigLayout(
+ 'tests/fixtures/layout-no-timer.yaml')
self.sched.reconfigure(self.config)
self.registerJobs()
self.worker.release()