This forum is no longer active. Please post your questions to our new community site

autotest anyone?

Subscribe to autotest anyone? 2 post(s), 2 voice(s)

 
Avatar asperigus 4 post(s)

Has anyone run autotest successfully?
It is having trouble on my rubyconsole.

bash-2.05b$ autotest -rails
/Applications/rubystack-1.5-2/ruby/bin/ruby -I.:lib:test -rubygems -e "%w[test/unit test/test_helper.rb].each { |f| require f }" | unit_diff -u
basename: illegal option -- I
usage: basename string [suffix]
 
Avatar danoo Administrator 81 post(s)

Hi Asperigus,

I think it is a bug on our side. We need to take a look at it to find out a general solution.

For now please try to apply the following patches for bin/ruby and bin/autotest files:

ruby/bin/ruby

@ -2,7 +2,7 @
. /bitrock/rubystack/scripts/setenv.sh
SCRIPT_NAME=“`echo $@ | awk -F\” \" ‘{print $1}’ | xargs basename`"
+SCRIPT_NAME=“`echo $@ | awk -F\” \" ‘{print $1}’ | xargs basename -
`"
SCRIPT_FIRST_PARAMETER=“`echo $@ | awk -F\” \" ‘{print $2}’`"
SCRIPT_SECOND_PARAMETER=“`echo $@ | awk -F\” \" ‘{print $3}’`"

ruby/bin/autotest

@ -1,4 +1,4 @
-#!/usr/bin/env /bitnami/rubystack/ruby/bin/ruby -ws
+#!/usr/bin/env /bitnami/rubystack/ruby/bin/ruby
#
# This file was generated by RubyGems.

Best regards,
Danoo