File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 1818
1919import subprocess
2020import sys
21+ import textwrap
2122import venv
2223from concurrent .futures import ThreadPoolExecutor
2324from pathlib import Path
@@ -85,11 +86,16 @@ def run(cmd: str) -> subprocess.CompletedProcess:
8586
8687fail = False
8788for result in executor .map (lambda x : run (x ), tests ):
88- print ("#####################################" )
89- print ("# Running {}" .format (" " .join (result .args )))
90- print (result .stdout .decode ())
91- print ("#####################################" )
92- print ()
89+ print (
90+ textwrap .dedent (
91+ f"""\
92+ #####################################
93+ # Running { " " .join (result .args )}
94+ { textwrap .indent (result .stdout .decode (), " " )}
95+ #####################################
96+ """
97+ )
98+ )
9399 if result .returncode :
94100 fail = True
95101
You can’t perform that action at this time.
0 commit comments