Skip to content
This repository has been archived by the owner on May 15, 2018. It is now read-only.

Commit

Permalink
Separate blacklist check in different conditions. (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreea Matei committed Oct 2, 2014
1 parent 0d7a47a commit a233608
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pulse.py
Expand Up @@ -201,11 +201,13 @@ def on_build(self, data):
target_branch = self.config['testrun']['by_branch'][data['tree']]
target_platform = self.get_platform_identifier(data['platform'])

# Check the locale against the locales blacklist if one is present and
# stop processing it if listed there
if 'blacklist' in target_branch and 'locales' in target_branch['blacklist'] and \
data['locale'] in target_branch['blacklist']['locales']:
return
# Process the blacklist if one is present
if 'blacklist' in target_branch:
# Check the locale against the locales blacklist if one is present and
# stop processing it if listed there
if 'locales' in target_branch['blacklist'] and \
data['locale'] in target_branch['blacklist']['locales']:
return

# Process the whitelist if one is present
if 'locales' in target_branch and \
Expand Down

0 comments on commit a233608

Please sign in to comment.