Add test for variant override
This demonstrates that the referenced variant override bug is fixed.
Story: 2000804
Task: 3387
Change-Id: I34d6f735b1ca267d2691608f839deae6e1a111b1
diff --git a/tests/test_scheduler.py b/tests/test_scheduler.py
index f3ae204..60bac66 100755
--- a/tests/test_scheduler.py
+++ b/tests/test_scheduler.py
@@ -2241,6 +2241,24 @@
def test_irrelevant_files_no_match_runs_job(self):
self._test_irrelevant_files_jobs(should_skip=False)
+ def test_inherited_jobs_keep_matchers(self):
+ self.updateConfigLayout('layout-inheritance')
+ self.sched.reconfigure(self.config)
+
+ files = {'ignoreme': 'ignored\n'}
+
+ change = self.fake_gerrit.addFakeChange('org/project',
+ 'master',
+ 'test irrelevant-files',
+ files=files)
+ self.fake_gerrit.addEvent(change.getPatchsetCreatedEvent(1))
+ self.waitUntilSettled()
+
+ run_jobs = set([build.name for build in self.history])
+
+ self.assertEqual(set(['project-test-nomatch-starts-empty',
+ 'project-test-nomatch-starts-full']), run_jobs)
+
@skip("Disabled for early v3 development")
def test_test_config(self):
"Test that we can test the config"