mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Replace pipe with redirection to a subshell (#13409)
When the writing process sends an EAGAIN to the fd, tee dies. We correct this behavior by redirecting the output to a subshell which handles this correctly. Relevant link here: https://serverfault.com/questions/369757/why-is-this-tee-losing-stdout
This commit is contained in:
committed by
Ben Schumacher
parent
4cbea3d5b5
commit
a83df931b9
+1
-1
@@ -15,7 +15,7 @@ echo "Packages to test: $PACKAGES"
|
||||
find . -name 'cprofile*.out' -exec sh -c 'rm "{}"' \;
|
||||
find . -type d -name data -not -path './vendor/*' | xargs rm -rf
|
||||
|
||||
$GO test $GOFLAGS -run=$TESTS $TESTFLAGS -v -timeout=2000s -covermode=count -coverpkg=$PACKAGES_COMMA -exec $DIR/test-xprog.sh $PACKAGES 2>&1 | tee output
|
||||
$GO test $GOFLAGS -run=$TESTS $TESTFLAGS -v -timeout=2000s -covermode=count -coverpkg=$PACKAGES_COMMA -exec $DIR/test-xprog.sh $PACKAGES 2>&1 > >( tee output )
|
||||
EXIT_STATUS=$?
|
||||
|
||||
cat output | $GOPATH/bin/go-junit-report > report.xml
|
||||
|
||||
Reference in New Issue
Block a user