diff options
author | Zuul <zuul@review.openstack.org> | 2017-10-03 10:08:11 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-10-03 10:08:11 +0000 |
commit | 75f171eaf80c6b5f4e95279b302feecf196f1faf (patch) | |
tree | 279acc148852b6736e56a87926f1c5ea99fd2e06 /tests/base.py | |
parent | a615c369c2f6a574cf5128593f28c868b922dddb (diff) | |
parent | f6dc176f0e186b1bf49644dd1b1ff1e5fe4326a4 (diff) | |
download | zuul-75f171eaf80c6b5f4e95279b302feecf196f1faf.tar.gz |
Merge "Fix branch matching logic" into feature/zuulv3
Diffstat (limited to 'tests/base.py')
-rwxr-xr-x | tests/base.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/base.py b/tests/base.py index abec81333..5841c08d9 100755 --- a/tests/base.py +++ b/tests/base.py @@ -2648,6 +2648,13 @@ class ZuulTestCase(BaseTestCase): return build raise Exception("Unable to find build %s" % name) + def assertJobNotInHistory(self, name, project=None): + for job in self.history: + if (project is None or + job.parameters['zuul']['project']['name'] == project): + self.assertNotEqual(job.name, name, + 'Job %s found in history' % name) + def getJobFromHistory(self, name, project=None): for job in self.history: if (job.name == name and |