Unit tests fail if jruby is not in PATH
---------------------------------------

                 Key: JRUBY-6088
                 URL: https://jira.codehaus.org/browse/JRUBY-6088
             Project: JRuby
          Issue Type: Bug
            Reporter: Wayne Meissner
            Assignee: Charles Oliver Nutter



Running 'ant test' on master fails with the following errors:

{noformat}

[junit] Testsuite: org.jruby.test.JRubyTestSuite
    [junit] Tests run: 26, Failures: 1, Errors: 0, Time elapsed: 117.235 sec
    [junit] 
    [junit] ------------- Standard Error -----------------
    [junit] /bin/sh: jruby: command not found
    [junit] ------------- ---------------- ---------------
    [junit] Testcase: test_dir(org.jruby.test.TestUnitTestSuite$ScriptTest):    
FAILED
    [junit] Faults encountered running test/test_dir, complete output follows:
    [junit] Error:
    [junit] test_chdir_and_pwd(TestDir):
    [junit] NoMethodError: undefined method `strip' for nil:NilClass
    [junit]     ./test/test_dir.rb:127:in `test_chdir_and_pwd'
    [junit]     org/jruby/RubyDir.java:335:in `chdir'
    [junit]     ./test/test_dir.rb:120:in `test_chdir_and_pwd'
    [junit]     org/jruby/RubyKernel.java:1945:in `send'
    [junit]     org/jruby/RubyArray.java:1590:in `each'
    [junit] 
    [junit] junit.framework.AssertionFailedError: Faults encountered running 
test/test_dir, complete output follows:
    [junit] Error:
    [junit] test_chdir_and_pwd(TestDir):
    [junit] NoMethodError: undefined method `strip' for nil:NilClass
    [junit]     ./test/test_dir.rb:127:in `test_chdir_and_pwd'
    [junit]     org/jruby/RubyDir.java:335:in `chdir'
    [junit]     ./test/test_dir.rb:120:in `test_chdir_and_pwd'
    [junit]     org/jruby/RubyKernel.java:1945:in `send'
    [junit]     org/jruby/RubyArray.java:1590:in `each'
    [junit] 
    [junit]     at 
org.jruby.test.TestUnitTestSuite$ScriptTest.runTest(TestUnitTestSuite.java:224)
    [junit] 
    [junit] 
    [junit] /bin/sh: jruby: command not found

BUILD FAILED

{noformat}

Adding $PWD/bin/jruby to PATH fixes this problem.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to