I am trying to build a debian package of minimagick, to be found here: https://github.com/minimagick/minimagick If git-buildpackage runs the tests i get two errors about file not found: Error: test_image_io_reading(ImageTest) Errno::ENOENT: No such file or directory - ~/Build/diaspora/build_mini_magick/ruby-mini-magick/ruby-mini-magick/lib/mini_magick.rb:70:in `initialize' 67: if File.respond_to?(:binread) 68: stream = StringIO.new File.binread(stream.path.to_s) 69: else => 70: stream = StringIO.new File.open(stream.path.to_s,"rb") { |f| f.read } 71: end 72: end 73: /home/molloy/Build/diaspora/build_mini_magick/ruby-mini-magick/ruby-mini-magick/lib/mini_magick.rb:70:in `open' /home/molloy/Build/diaspora/build_mini_magick/ruby-mini-magick/ruby-mini-magick/lib/mini_magick.rb:70:in `read' ./test/image_test.rb:40:in `test_image_io_reading' Line 70 of lib/mini_magick.rb is shown above. The other error is from the test "test_remote_image_with_complex_url". ------ Line 39/40 of test/image_test.rb is: buffer = StringIO.new File.open(SIMPLE_IMAGE_PATH,"rb") { |f| f.read } image = Image.read(buffer) ------- test/test_helper.rb contains this: require File.expand_path('../../lib/mini_magick', __FILE__) module MiniMagickTestFiles test_files = File.expand_path(File.dirname(__FILE__) + "/files") SIMPLE_IMAGE_PATH = test_files + "/simple.gif" ... end ------- If i run the test manually: ruby image_test.rb i get rid of both errors i get when running git-buildpackage. But i get a different one about "file not found" from the test "test_simple_composite" I am new to packaging and don't know ruby well. I looked at StringIO and File, but can't find the source of the problem. Thanks in advance.
on 2013-02-10 21:15
on 2013-02-15 03:25
markus tornow wrote in post #1096191: > I am trying to build a debian package of minimagick, to be found here: > https://github.com/minimagick/minimagick > > If git-buildpackage runs the tests i get two errors about file not > found: > > Error: test_image_io_reading(ImageTest) > Errno::ENOENT: No such file or directory - > ... I couldn't figure out why the tests fail, but the new version of minimagick ( 3.5.0) has solved the issue for me. Perhaps this: https://github.com/minimagick/minimagick/pull/122 has solved it. Thanks again.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.