[DRE-maint] Bug#812937: ruby-test-unit-context: FTBFS - tests unexpectedly returning nil
Michael Tautschnig
mt at debian.org
Thu Jan 28 00:07:08 UTC 2016
Package: ruby-test-unit-context
Version: 0.5.0-1
Severity: serious
Usertags: goto-cc
During a rebuild of all Debian packages in a clean sid chroot (using cowbuilder
and pbuilder) the build failed with the following error.
[...]
===============================================================================
Failure: test: runs setup method block a la Shoulda(Test::Unit::Context::TestHooks::ContextWithSetupTeardownMethods)
/srv/jenkins-slave/workspace/sid-goto-cc-ruby-test-unit-context/ruby-test-unit-context-0.5.0/test/test/unit/context/hooks_test.rb:194:in `block (2 levels) in <class:TestHooks>'
191: SAMPLE_TEST.class_eval { attr_reader :one, :two }
192:
193: it "runs setup method block a la Shoulda" do
=> 194: assert_equal 1, @test.one
195: end
196:
197: it "runs setup method block and regular callbacks" do
<1> expected but was
<nil>
===============================================================================
: (0.014986)
test: runs setup method block and regular callbacks:.: (0.001075)
test: runs teardown method block a la Shoulda: F
===============================================================================
Failure: test: runs teardown method block a la Shoulda(Test::Unit::Context::TestHooks::ContextWithSetupTeardownMethods)
/srv/jenkins-slave/workspace/sid-goto-cc-ruby-test-unit-context/ruby-test-unit-context-0.5.0/test/test/unit/context/hooks_test.rb:202:in `block (2 levels) in <class:TestHooks>'
199: end
200:
201: it "runs teardown method block a la Shoulda" do
=> 202: assert_equal 10, @test.two
203: end
204:
205: it "runs teardown method block and regular callbacks" do
<10> expected but was
<nil>
===============================================================================
[...]
Finished in 0.066519869 seconds.
------
67 tests, 92 assertions, 2 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
97.0149% passed
------
1007.22 tests/s, 1383.05 assertions/s
rake aborted!
Command failed with status (1): [ruby -I"test" "/usr/lib/ruby/vendor_ruby/rake/rake_test_loader.rb" "test/test/unit/context/hooks_test.rb" "test/test/unit/context/shared_test.rb" "test/test/unit/context/spec_test.rb" "test/test/unit/context_test.rb" "test/test/unit/patches_test.rb" -v]
Tasks: TOP => default
(See full trace by running task with --trace)
ERROR: Test "ruby2.2" failed. Exiting.
dh_auto_install: dh_ruby --install /srv/jenkins-slave/workspace/sid-goto-cc-ruby-test-unit-context/ruby-test-unit-context-0.5.0/debian/ruby-test-unit-context returned exit code 1
debian/rules:15: recipe for target 'binary' failed
make: *** [binary] Error 1
The full build log is attached; please do let me know if the problem is
unreproducible, in which case I shall try to investigate further.
Best,
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ruby-test-unit-context-build-log.txt.gz
Type: application/x-gunzip
Size: 7828 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20160128/762470da/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20160128/762470da/attachment-0001.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list