lp://staging/~brendan-donegan/checkbox/no_prefix_match_tests
Created by
Brendan Donegan
and last modified
- Get this branch:
- bzr branch lp://staging/~brendan-donegan/checkbox/no_prefix_match_tests
Only
Brendan Donegan
can upload to this branch. If you are
Brendan Donegan
please log in for upload directions.
Branch merges
Propose for merging
No branches
dependent on this one.
- Zygmunt Krynicki (community): Approve
-
Diff: 29 lines (+20/-0)1 file modifiedplainbox/plainbox/impl/test_box.py (+20/-0)
Branch information
Recent revisions
- 1946. By Brendan Donegan
-
test_box: added tests to make sure prefix matches don't work
Added tests which check that prefix matching doesn't work, so that e.g. 'fo' doesn't match foo and 'fo.+' does for examples.
- 1945. By Brendan Donegan
-
box: use re.match istead of fnmatch
This will allow existing whitelist patterns to match succesfully since they assume that proper regular expressions are used. Also updated the tests to use regular expressions. To align with what checkbox did, and also to try and make use of -i intuitive, the patterns automatically have ^ prepended and $ appended, so that the pattern doesn't match part of a job name.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp://staging/checkbox