Download:
child 196:7a05eb159087
parent 194:7dab4b84d205
195:31c88aa3a6d2
Anton Shestakov <av6@dwimlabs.net>, Sat, 30 Jul 2016 17:24:50 +0800
checker: don't forget 'codes' from linter config

1 файлов изменено, 3 вставок(+), 3 удалений(-) [+]
checker.py file | annotate | diff | comparison | revisions
--- a/checker.py Sat Jul 30 16:11:32 2016 +0800
+++ b/checker.py Sat Jul 30 17:24:50 2016 +0800
@@ -103,7 +103,8 @@
def process_config(lc, pc):
c = {
'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,))
}
def render(items):
@@ -302,8 +303,7 @@
for f in files:
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']):
return False
return True