maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joakim Erdfelt (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (SUREFIRE-551) On Linux (Ubuntu) it fails to escape all special characters when forking commands.
Date Wed, 03 Jun 2009 00:39:42 GMT

    [ http://jira.codehaus.org/browse/SUREFIRE-551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=179089#action_179089
] 

Joakim Erdfelt commented on SUREFIRE-551:
-----------------------------------------

How to reproduce (short way)

# Create a maven 2 project in a path with "(" character.  eg: /home/user/code/project-foo(trunk)/pom.xml
# Create intentional test failure in the codebase
# Build: mvn clean install
# Notice, no test failures are reported (and no tests are run!)

How to reproduce (the long way)

# Load a maven 2 project into a Hudson instance.
# Set your project name in Hudson to "Project (foo)"
# Add an intentional test failure to the codebase, one that will generate a test failures.
# Build the project in hudson
# No test failures are reported, as the /bin/sh: Syntax Error: "(" unexpected occurs


> On Linux (Ubuntu) it fails to escape all special characters when forking commands.
> ----------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-551
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-551
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: process forking
>    Affects Versions: 2.4.2
>         Environment: Maven version: 2.0.9
> Java version: 1.6.0_13
> OS name: "linux" version: "2.6.28-11-server" arch: "amd64" Family: "unix"
>            Reporter: Sean Montgomery
>            Priority: Blocker
>
> Our project folder name has ()'s in it and this seems to be causing a problem for surefire
as it is not escaping them when forking off.
> [INFO] Surefire report directory: /opt/paml/hudson/jobs/Site - XXX (1234)/workspace/trunk/target/surefire-reports
> Forking command line: /bin/sh -c "cd /opt/paml/hudson/jobs/Site\ -\ XXX\ (1234)/workspace/trunk
&& /usr/lib/jvm/java-6-sun-1.6.0.13/jre/bin/java -jar /tmp/surefirebooter7806691896360428397.jar
/tmp/surefire3396974786525533977tmp /tmp/surefire4621871739825375135tmp"
> /bin/sh: Syntax error: "(" unexpected
> [ERROR] There are test failures.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message