[DRE-maint] Bug#830542: Tests fail when testing installed package
Christian Hofstaedtler
zeha at debian.org
Sat Jul 9 09:00:50 UTC 2016
Package: ruby-carrierwave
Version: 0.10.0+gh-2
Severity: important
X-Debbugs-CC: debian-ruby at lists.debian.org
Dear Maintainer,
your package tests fail when testing the installed package:
autopkgtest [10:59:08]: test command1: gem2deb-test-runner --autopkgtest --check-dependencies 2>&1
autopkgtest [10:59:08]: test command1: [-----------------------
┌──────────────────────────────────────────────────────────────────────────────┐
│ Checking Rubygems dependency resolution on ruby2.3 │
└──────────────────────────────────────────────────────────────────────────────┘
GEM_PATH= ruby2.3 -e gem\ \"carrierwave\"
┌──────────────────────────────────────────────────────────────────────────────┐
│ Run tests for ruby2.3 from debian/ruby-tests.rake │
└──────────────────────────────────────────────────────────────────────────────┘
mv lib .gem2deb.lib
RUBYLIB=. GEM_PATH= ruby2.3 -S rake -f debian/ruby-tests.rake
/usr/bin/ruby2.3 /usr/bin/rspec ./spec/processing/mini_magick_spec.rb
................FFF
Failures:
1) CarrierWave::MiniMagick test errors invalid image file should fail to process a non image file
Failure/Error: lambda {@instance.resize_to_limit(200, 200)}.should raise_exception(CarrierWave::ProcessingError, /^Failed to manipulate with MiniMagick, maybe it is not an image\? Original Error:/)
expected CarrierWave::ProcessingError with message matching /^Failed to manipulate with MiniMagick, maybe it is not an image\? Original Error:/, got #<I18n::InvalidLocaleData: can not load translations from /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/lib/carrierwave/locale/en.yml: #<Errno::ENOENT: No such file or directory @ rb_sysopen - /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/lib/carrierwave/locale/en.yml>> with backtrace:
# /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:141:in `block (5 levels) in <top (required)>'
# /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:141:in `block (4 levels) in <top (required)>'
# /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:141:in `block (4 levels) in <top (required)>'
2) CarrierWave::MiniMagick test errors invalid image file should use I18n
Failure/Error: lambda {@instance.resize_to_limit(200, 200)}.should raise_exception(CarrierWave::ProcessingError, /^Kon bestand niet met MiniMagick bewerken, misschien is het geen beeld bestand\? MiniMagick foutmelding:/)
expected CarrierWave::ProcessingError with message matching /^Kon bestand niet met MiniMagick bewerken, misschien is het geen beeld bestand\? MiniMagick foutmelding:/, got #<I18n::InvalidLocaleData: can not load translations from /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/lib/carrierwave/locale/en.yml: #<Errno::ENOENT: No such file or directory @ rb_sysopen - /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/lib/carrierwave/locale/en.yml>> with backtrace:
# /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:150:in `block (6 levels) in <top (required)>'
# /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:150:in `block (5 levels) in <top (required)>'
# /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/spec_helper.rb:106:in `change_locale_and_store_translations'
# /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:145:in `block (4 levels) in <top (required)>'
# /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:150:in `block (5 levels) in <top (required)>'
# /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/spec_helper.rb:106:in `change_locale_and_store_translations'
# /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:145:in `block (4 levels) in <top (required)>'
3) CarrierWave::MiniMagick test errors invalid image file should not suppress errors when translation is unavailable
Failure/Error:
lambda do
@instance.resize_to_limit(200, 200)
end.should raise_exception( CarrierWave::ProcessingError, /Not a JPEG/ )
expected CarrierWave::ProcessingError with message matching /Not a JPEG/, got #<I18n::InvalidLocaleData: can not load translations from /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/lib/carrierwave/locale/en.yml: #<Errno::ENOENT: No such file or directory @ rb_sysopen - /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/lib/carrierwave/locale/en.yml>> with backtrace:
# /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:157:in `block (6 levels) in <top (required)>'
# /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:156:in `block (5 levels) in <top (required)>'
# /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/spec_helper.rb:106:in `change_locale_and_store_translations'
# /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:155:in `block (4 levels) in <top (required)>'
# /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:156:in `block (5 levels) in <top (required)>'
# /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/spec_helper.rb:106:in `change_locale_and_store_translations'
# /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:155:in `block (4 levels) in <top (required)>'
Deprecation Warnings:
--------------------------------------------------------------------------------
CarrierWave::Test::Matchers::HaveDimensions implements a legacy RSpec matcher
protocol. For the current protocol you should expose the failure messages
via the `failure_message` and `failure_message_when_negated` methods.
(Used from /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:32:in `block (3 levels) in <top (required)>')
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
CarrierWave::Test::Matchers::HaveDimensions implements a legacy RSpec matcher
protocol. For the current protocol you should expose the failure messages
via the `failure_message` and `failure_message_when_negated` methods.
(Used from /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:39:in `block (3 levels) in <top (required)>')
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
CarrierWave::Test::Matchers::HaveDimensions implements a legacy RSpec matcher
protocol. For the current protocol you should expose the failure messages
via the `failure_message` and `failure_message_when_negated` methods.
(Used from /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:45:in `block (3 levels) in <top (required)>')
--------------------------------------------------------------------------------
Too many similar deprecation messages reported, disregarding further reports. Pass `--deprecation-out` or set `config.deprecation_stream` to a file for full output.
Using `should` from rspec-expectations' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` with `config.expect_with(:rspec) { |c| c.syntax = :should }` instead. Called from /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:25:in `block (3 levels) in <top (required)>'.
Using `stub` from rspec-mocks' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` instead. Called from /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:13:in `block (2 levels) in <top (required)>'.
If you need more of the backtrace for any of these deprecations to
identify where to make the necessary changes, you can configure
`config.raise_errors_for_deprecations!`, and it will turn the
deprecation warnings into errors, giving you the full backtrace.
14 deprecation warnings total
Finished in 2.23 seconds (files took 0.49326 seconds to load)
19 examples, 3 failures
Failed examples:
rspec /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:140 # CarrierWave::MiniMagick test errors invalid image file should fail to process a non image file
rspec /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:144 # CarrierWave::MiniMagick test errors invalid image file should use I18n
rspec /tmp/autopkgtest.DS12rS/build.XsE/ruby-carrierwave-0.10.0+gh/spec/processing/mini_magick_spec.rb:154 # CarrierWave::MiniMagick test errors invalid image file should not suppress errors when translation is unavailable
/usr/bin/ruby2.3 /usr/bin/rspec ./spec/processing/mini_magick_spec.rb failed
mv .gem2deb.lib lib
autopkgtest [10:59:12]: test command1: -----------------------]
autopkgtest [10:59:12]: test command1: - - - - - - - - - - results - - - - - - - - - -
command1 FAIL non-zero exit status 1
autopkgtest [10:59:12]: @@@@@@@@@@@@@@@@@@@@ summary
command1 FAIL non-zero exit status 1
--
,''`. Christian Hofstaedtler <zeha at debian.org>
: :' : Debian Developer
`. `' 7D1A CFFA D9E0 806C 9C4C D392 5C13 D6DB 9305 2E03
`-
More information about the Pkg-ruby-extras-maintainers
mailing list