|
a/AlluraTesting/alluratest/test_syntax.py |
|
b/AlluraTesting/alluratest/test_syntax.py |
|
... |
|
... |
38 |
error = False
|
38 |
error = False
|
39 |
all_files = [f for f in find_stdout.split('\n')
|
39 |
all_files = [f for f in find_stdout.split('\n')
|
40 |
if '/migrations/' not in f and f.strip()]
|
40 |
if '/migrations/' not in f and f.strip()]
|
41 |
for files in grouper(20, all_files, fillvalue=''):
|
41 |
for files in grouper(20, all_files, fillvalue=''):
|
42 |
cmd = "pyflakes " + ' '.join(files) + " | grep -v '" + "' | grep -v '".join(skips) + "'"
|
42 |
cmd = "pyflakes " + ' '.join(files) + " | grep -v '" + "' | grep -v '".join(skips) + "'"
|
43 |
print 'Command was: %s' % cmd
|
43 |
#print 'Command was: %s' % cmd
|
44 |
retval = run(cmd)
|
44 |
retval = run(cmd)
|
45 |
if retval != 1:
|
45 |
if retval != 1:
|
46 |
print
|
46 |
print
|
47 |
print 'Command was: %s' % cmd
|
47 |
#print 'Command was: %s' % cmd
|
48 |
print 'Returned %s' % retval
|
48 |
print 'Returned %s' % retval
|
49 |
error = True
|
49 |
error = True
|
50 |
|
50 |
|
51 |
if error:
|
51 |
if error:
|
52 |
raise Exception('pyflakes failure, see stdout')
|
52 |
raise Exception('pyflakes failure, see stdout')
|