diff options
author | Ran Benita <ran@unusedvar.com> | 2019-11-01 10:45:43 +0200 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2019-11-01 10:45:43 +0200 |
commit | 3515ba19a6f9c64d4f00a369cc186ca034de5c18 (patch) | |
tree | 058778db8ee6e4accb4332ffdf06d3589bdaccec /test | |
parent | 8f93e22a378d31c2d72bbb2d7a907cd65917ba6f (diff) | |
download | xorg-lib-libxkbcommon-3515ba19a6f9c64d4f00a369cc186ca034de5c18.tar.gz |
test: xkeyboard-config: bring back the progress bar
Signed-off-by: Ran Benita <ran@unusedvar.com>
Diffstat (limited to 'test')
-rwxr-xr-x | test/xkeyboard-config-test.py.in | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/xkeyboard-config-test.py.in b/test/xkeyboard-config-test.py.in index 26d3a30..816cbd0 100755 --- a/test/xkeyboard-config-test.py.in +++ b/test/xkeyboard-config-test.py.in @@ -17,7 +17,7 @@ EXTRA_PATH = '@MESON_BUILD_ROOT@' os.environ['PATH'] = ':'.join([EXTRA_PATH, os.getenv('PATH')]) -def noop_progress_bar(x, desc): +def noop_progress_bar(x, total): return x @@ -156,13 +156,11 @@ def run(combos, tool, njobs): failed = False with Pool(njobs) as p: results = p.imap_unordered(tool, combos) - for r in progress_bar(results, 'testing'): - success, output = r + for success, output in progress_bar(results, total=len(combos)): if not success: failed = True if output: print(output, file=sys.stdout if success else sys.stderr) - return failed |