Skip to content

Commit

Permalink
improve regex to find parameter definitions in check for redefined pa…
Browse files Browse the repository at this point in the history
…rameters, as suggested by @smoors
  • Loading branch information
boegel committed Feb 20, 2020
1 parent 81e30d7 commit 6daa654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/easyconfigs/easyconfigs.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ def template_easyconfig_test(self, spec):
self.assertFalse(res, error_msg % res)

# check for redefined easyconfig parameters, there should be none...
param_def_regex = re.compile('^(?P<key>[a-z_]+)\s*=', re.M)
param_def_regex = re.compile('^(?P<key>\w+)\s*=', re.M)
keys = param_def_regex.findall(ec.rawtxt)
redefined_keys = []
for key in sorted(nub(keys)):
Expand Down

0 comments on commit 6daa654

Please sign in to comment.