Skip to content

Commit 150d7f4

Browse files
committed
infrastructure/runner: do not redirect stdout to devnull
Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
1 parent 054fadc commit 150d7f4

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

infrastructure/runner.py

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import json
2727
import pandas
2828
from multiprocessing import Pool, cpu_count
29-
from contextlib import redirect_stdout
3029

3130
from fpgaperf import run
3231
from infrastructure.dataframe import generate_dataframe
@@ -73,24 +72,23 @@ def eprint(*args, **kwargs):
7372

7473
build = self.build_format.format(build_number)
7574

76-
with redirect_stdout(open(os.devnull, 'w')):
77-
run(
78-
board,
79-
toolchain,
80-
project,
81-
None, #params_file
82-
option, #params_string
83-
None, #out_dir
84-
self.out_prefix,
85-
self.overwrite,
86-
self.verbose,
87-
None, #strategy
88-
seed,
89-
None, #carry
90-
build,
91-
self.build_type,
92-
self.timeout
93-
)
75+
run(
76+
board,
77+
toolchain,
78+
project,
79+
None, #params_file
80+
option, #params_string
81+
None, #out_dir
82+
self.out_prefix,
83+
self.overwrite,
84+
self.verbose,
85+
None, #strategy
86+
seed,
87+
None, #carry
88+
build,
89+
self.build_type,
90+
self.timeout
91+
)
9492

9593
def run(self):
9694
os.makedirs(os.path.expanduser(self.out_prefix), exist_ok=True)

0 commit comments

Comments
 (0)