test_all_apps: actually count nr of errors

Each test run returns 1 on error, so instead of |=, why not count the number of
errors with +=. Also print the final error count.

Change-Id: I690dde3711555a3447e5ad4cc0a04a7a869a8296
This commit is contained in:
Neels Hofmeyr 2017-02-27 01:06:44 +01:00
parent cebe8f5b00
commit baa6f12260
1 changed files with 3 additions and 1 deletions

View File

@ -172,11 +172,13 @@ def test_all_apps(apps, app_configs, tmpdir="writtenconfig", verbose=True,
configs = app_configs[app[3]]
for config in configs:
config = os.path.join(confpath, config)
errors |= test_config(app, config, tmpdir, verbose)
errors += test_config(app, config, tmpdir, verbose)
if rmtmp or not errors:
remove_tmpdir(tmpdir)
if errors:
print >> sys.stderr, "ERRORS: %d" % errors
return errors