diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2021-04-16 09:24:20 +1000 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2021-04-20 10:30:17 +0300 |
commit | be520ef91c7a4be8cf77b45edd8812173e0dad9b (patch) | |
tree | 0e9a1592e50d4ffbba1883014188ceaafdc4e824 /test | |
parent | efa5805032c1f70e391b4066428c61d03abd5cb7 (diff) | |
download | libxkbcommon-be520ef91c7a4be8cf77b45edd8812173e0dad9b.tar.gz libxkbcommon-be520ef91c7a4be8cf77b45edd8812173e0dad9b.tar.bz2 libxkbcommon-be520ef91c7a4be8cf77b45edd8812173e0dad9b.zip |
test: print the layout-tester progress bar to stdout by default
tqdm prints to stderr by default but we're using that for failed keymap
compiles (which are the ones that really matter). Plus, whether we're using tqdm
is dependent on isatty(sys.stdout) anyway.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rwxr-xr-x | test/xkeyboard-config-test.py.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/xkeyboard-config-test.py.in b/test/xkeyboard-config-test.py.in index c39b66b..752f027 100755 --- a/test/xkeyboard-config-test.py.in +++ b/test/xkeyboard-config-test.py.in @@ -23,7 +23,7 @@ def escape(s): # The function generating the progress bar (if any). def create_progress_bar(verbose): - def noop_progress_bar(x, total): + def noop_progress_bar(x, total, file=None): return x progress_bar = noop_progress_bar @@ -211,7 +211,7 @@ def run(combos, tool, njobs, keymap_output_dir): failed = False with multiprocessing.Pool(njobs) as p: results = p.imap_unordered(tool, combos) - for invocation in progress_bar(results, total=len(combos)): + for invocation in progress_bar(results, total=len(combos), file=sys.stdout): if invocation.exitstatus != 0: failed = True target = sys.stderr |