Skip to content

Commit eb9b73c

Browse files
committed
fix errorlog in Evergreen
1 parent 804e981 commit eb9b73c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.evergreen/compile-unix.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,12 @@ fi
257257
# This should fail when using fips capable OpenSSL when fips mode is enabled
258258
openssl md5 README.rst || true
259259
$SCAN_BUILD make all
260-
$SCAN_BUILD make $TARGET TEST_ARGS="-d -F test-results.json" 2>error.log
260+
261+
# Write stderr to error.log and to console.
262+
mkfifo pipe
263+
tee error.log < pipe &
264+
$SCAN_BUILD make $TARGET TEST_ARGS="-d -F test-results.json" 2>pipe
265+
rm pipe
261266

262267
# Check if the error.log exists, and is more than 0 byte
263268
if [ -s error.log ]; then

0 commit comments

Comments
 (0)