Skip to content

Commit 628bffe

Browse files
committed
scripts: only show error log
Signed-off-by: Jingru Wang <jingru@synopsys.com>
1 parent 023b85b commit 628bffe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/test.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ def process(self, pipeline, done, message, lock, results):
951951

952952
def build(self, **kwargs):
953953
kwargs['stdout'] = subprocess.PIPE
954-
kwargs['stderr'] = subprocess.STDOUT
954+
kwargs['stderr'] = subprocess.PIPE
955955

956956
cmd = ["make", "BOARD=%s" % (self.platform.name),
957957
"BD_VER=%s" % (self.platform.version),
@@ -966,12 +966,13 @@ def build(self, **kwargs):
966966
env = os.environ.copy()
967967

968968
p = subprocess.Popen(cmd, cwd=self.build_dir, env=env, **kwargs)
969-
out, _ = p.communicate()
969+
out, err = p.communicate()
970970
if out:
971971
with open(os.path.join(self.build_dir, self.log), "a") as log:
972972
log.write(out.decode())
973973
if p.returncode:
974-
logger.debug(out.decode())
974+
log.write(err.decode())
975+
logger.debug(err.decode())
975976
results = {}
976977
msg = "build status: %s version %s core %s %s %s" % (
977978
self.platform.name,

0 commit comments

Comments
 (0)