--- a/checker.py Sat Jul 30 16:11:32 2016 +0800
+++ b/checker.py Sat Jul 30 17:24:50 2016 +0800
def process_config(lc, pc):
'env': combined(lc.get('env'), pc.get('env')),
- 'vars': combined(lc.get('vars', {}), pc.get('vars', {}))
+ 'vars': combined(lc.get('vars', {}), pc.get('vars', {})),
+ 'codes': lc.get('codes', (1,))
cmd = lc['exec'] + lc['flags'] + [f] + lc['post_flags']
- codes = lc.get('codes', (1,))
- if not run(cmd, ignore_codes=codes, env=lc['env']):
+ if not run(cmd, ignore_codes=lc['codes'], env=lc['env']):