[ 
https://issues.apache.org/jira/browse/SUREFIRE-1239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15772782#comment-15772782
 ] 

ASF GitHub Bot commented on SUREFIRE-1239:
------------------------------------------

GitHub user jsdima opened a pull request:

    https://github.com/apache/maven-surefire/pull/137

    Fix SUREFIRE-1239

    Project to reproduce - https://github.com/jsdima/SUREFIRE-1239-reproduce
    
    More info:
    Problem appears when there are a lot of console output after last 
test(which leads to save this output to file) in TestSet, and in the next 
TestSet some test fails. It happens because stream 
(`Utf8RecodingDeferredFileOutputStream testStdOut`)  which collects data after 
test execution but before TestSet finished  then also used in next TestSet.
    
    Sometimes it leads to 
    ```
    [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on 
project SUREFIRE-1239-reproduce: Execution default-test of goal 
org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: 
java.lang.RuntimeException: org.apache.maven.surefire.report.ReporterException: 
When writing xml report stdout/stderr: /tmp/stdout8948920314382993444deferred 
(No such file or directory) -> [Help 1]
    ```
    
    sometimes build just hangs

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jsdima/maven-surefire master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/maven-surefire/pull/137.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #137
    
----
commit 768bd3c1bc0894269b6f6819eb643ea328d08c42
Author: dg <dg@utgard>
Date:   2016-12-23T11:14:17Z

    Fix SUREFIRE-1239

----


> ExecutionException java.lang.RuntimeException: 
> org.apache.maven.surefire.report.ReporterException: When writing xml report 
> stdout/stderr (No such file or directory)
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-1239
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1239
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.19.1
>            Reporter: Yoram Michaeli
>            Assignee: Tibor Digana
>
> Getting the following exception every few builds:
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on 
> project publisher-console: ExecutionException java.lang.RuntimeException: 
> org.apache.maven.surefire.report.ReporterException: When writing xml report 
> stdout/stderr: /tmp/stdout9186853534312229181deferred (No such file or 
> directory) -> [Help 1]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to