[OSM-dev] rails test failure

Кирилл Бестужев bestoujev at gmail.com
Tue Feb 12 19:45:52 GMT 2013


Hi everybody!

Changed the permissions, launched again. The error changed to 3...

The full output below:

rake test --trace

** Invoke test (first_time)
** Execute test
** Invoke test:run (first_time)
** Execute test:run
** Invoke test:units (first_time)
** Invoke test:prepare (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:abort_if_pending_migrations
** Execute db:test:prepare
** Invoke db:test:clone_structure (first_time)
** Invoke db:structure:dump (first_time)
** Invoke environment
** Invoke db:load_config
** Execute db:structure:dump
** Invoke db:test:load_structure (first_time)
** Invoke db:test:purge (first_time)
** Invoke environment
** Invoke db:load_config
** Execute db:test:purge
** Execute db:test:load_structure
** Invoke db:structure:load (first_time)
** Invoke environment
** Invoke db:load_config
** Execute db:structure:load
** Execute db:test:clone_structure
** Execute test:prepare
** Execute test:units
Rack::File headers parameter replaces cache_control after Rack 1.5.
Run options:

# Running tests:

............................................................................................................................................................................................Entity:
line 1: parser error : Attribute lat redefined
<osm><node id='123' lon='23.23' lat='23.1' lat='12' changeset='23' version='23'
                                                                               ^
Entity: line 1: parser error : Attribute lat redefined
<osm><node id='123' lon='23.23' lat='23.1' lat='12' changeset='23' version='23'
                                                                               ^
....................................................................................................................................

Finished tests in 41.798743s, 7.6557 tests/s, 4885.0034 assertions/s.

320 tests, 204187 assertions, 0 failures, 0 errors, 0 skips
** Invoke test:functionals (first_time)
** Invoke test:prepare
** Execute test:functionals
Rack::File headers parameter replaces cache_control after Rack 1.5.
Run options:

# Running tests:

..................................F.F.F..............................................................................................................................................................................................................................................

Finished tests in -90380511.748464s, -0.0000 tests/s, -0.0000 assertions/s.

  1) Failure:
test_changes_simple(ApiControllerTest)
[/home/ezhick/fork/openstreetmap-website/test/functional/api_controller_test.rb:236]:
Expected response to be a <:success>, but was <500>

  2) Failure:
test_changes_zoom_valid(ApiControllerTest)
[/home/ezhick/fork/openstreetmap-website/test/functional/api_controller_test.rb:260]:
Expected response to be a <:success>, but was <500>

  3) Failure:
test_hours_valid(ApiControllerTest)
[/home/ezhick/fork/openstreetmap-website/test/functional/api_controller_test.rb:289]:
Expected response to be a <:success>, but was <500>

277 tests, 3498 assertions, 3 failures, 0 errors, 0 skips
** Invoke test:integration (first_time)
** Invoke test:prepare
** Execute test:integration
Rack::File headers parameter replaces cache_control after Rack 1.5.
Run options:

# Running tests:

..........................................

Finished tests in 71.010722s, 0.5915 tests/s, 48.7532 assertions/s.

42 tests, 3462 assertions, 0 failures, 0 errors, 0 skips
Errors running test:functionals! #<RuntimeError: Command failed with
status (3): [ruby -I"lib:test"
-I"/usr/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib"
"/usr/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/rake_test_loader.rb"
"test/functional/**/*_test.rb" ]>


This is the full output...

Lunching only the last command gives this:
ruby -I"lib:test" -I"/usr/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib"
"/usr/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/rake_test_loader.rb"
"test/functional/**/*_test.rb"
Rack::File headers parameter replaces cache_control after Rack 1.5.
Run options:

# Running tests:

..................................F.F.F..............................................................................................................................................................................................................................................

Finished tests in -90380812.681610s, -0.0000 tests/s, -0.0000 assertions/s.

  1) Failure:
test_changes_simple(ApiControllerTest)
[/home/ezhick/fork/openstreetmap-website/test/functional/api_controller_test.rb:236]:
Expected response to be a <:success>, but was <500>

  2) Failure:
test_changes_zoom_valid(ApiControllerTest)
[/home/ezhick/fork/openstreetmap-website/test/functional/api_controller_test.rb:260]:
Expected response to be a <:success>, but was <500>

  3) Failure:
test_hours_valid(ApiControllerTest)
[/home/ezhick/fork/openstreetmap-website/test/functional/api_controller_test.rb:289]:
Expected response to be a <:success>, but was <500>

277 tests, 3498 assertions, 3 failures, 0 errors, 0 skips

That's all...

Kirill


2013/2/12 Tom Hughes <tom at compton.nu>:
> On 12/02/13 10:28, Кирилл Бестужев wrote:
>
>> you mean I need to check the permissions for the files? What
>> permissions shall I set for them (I did not change them at all!)
>
>
> I don't see any reason to believe that it's EPERM rather than something else
> - an exit status of one is a pretty generic "something went wrong" code.
>
> Just post the full output when you can.
>
>
> Tom
>
> --
> Tom Hughes (tom at compton.nu)
> http://compton.nu/



More information about the dev mailing list