Coder Social home page Coder Social logo

Comments (6)

grosser avatar grosser commented on August 19, 2024

definitely a bug in autotest, do you have any more backtrace / hints what could be the problem ?

from autotest.

jeygeethan avatar jeygeethan commented on August 19, 2024

I have tracked that the bug is because of the cmd being generated. In run_tests method of autotest.rb, the cmd being generated is the following :

C:\Ruby\bin\ruby -I.;lib;test -rubygems -e "['test/unit', 'test/test_unit_diff.rb', 'test/test_autotest.rb', 'test/test_autotest_integration.rb'].each { |f| require f }" | C:/Ruby/lib/ruby/gems/1.8/gems/autotest-4.4.5/bin/unit_diff -u

I think it should instead be

C:\Ruby\bin\ruby -I.;lib;test -rubygems -e "['test/unit', 'test/test_unit_diff.rb', 'test/test_autotest.rb', 'test/test_autotest_integration.rb'].each { |f| require f }" | unit_diff -u

because 'unit_diff' will be installed as a batch file in windows. Also, the slashes should be backward slashes in windows.

from autotest.

grosser avatar grosser commented on August 19, 2024

so just using backslashes would not work ?

from autotest.

jeygeethan avatar jeygeethan commented on August 19, 2024

No it would not, because only unit_diff.rb is present in that directory and this cannot be run as a command. Instead if unit_diff is specified, it will run the batch file present in c:\ruby\bin

from autotest.

grosser avatar grosser commented on August 19, 2024

sounds strange, there should be unti_diff file, not unit_diff.rb, can you give the 'just replace backslashes' a try, would be nice if there could be less windows specific code

from autotest.

jeygeethan avatar jeygeethan commented on August 19, 2024

Fixed

from autotest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.