From 3515ba19a6f9c64d4f00a369cc186ca034de5c18 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Fri, 1 Nov 2019 10:45:43 +0200 Subject: test: xkeyboard-config: bring back the progress bar Signed-off-by: Ran Benita --- test/xkeyboard-config-test.py.in | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test') 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 -- cgit v1.2.1