Skip to content

Commit 584b266

Browse files
committed
Fix verbose printing of the testRunner commands
1 parent f31b80e commit 584b266

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

DeeployTest/testDmas.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,16 @@ def __repr__(self) -> str:
106106
print(f"Running command:\n{cfg.cmd}\n")
107107

108108
try:
109+
timeout = 60 # 60 seconds
109110
if args.verbose:
110-
out, err = subprocess.STDOUT, subprocess.STDOUT
111+
subprocess.run(cfg.cmd, shell = True, check = True, timeout = timeout)
111112
else:
112-
out, err = subprocess.DEVNULL, subprocess.DEVNULL
113-
subprocess.run(cfg.cmd, shell = True, check = True, stdout = out, stderr = err,
114-
timeout = 10) # 10min timeout
113+
subprocess.run(cfg.cmd,
114+
shell = True,
115+
check = True,
116+
stdout = subprocess.DEVNULL,
117+
stderr = subprocess.DEVNULL,
118+
timeout = timeout)
115119
if not args.quiet:
116120
print(f"{cfg.short_repr} - OK")
117121
except subprocess.CalledProcessError:

0 commit comments

Comments
 (0)