[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFS: test-kitchen



Hi Hleb,

There is an issue which prevents the package to be built with sbuild:
it seems that one of the cucumber features uses pry and tries to read
the .pry_history file in the $HOME directory, which doesn't exist when
building with sbuild. See below an exerpt of the build log:

-----8<---------------------
expected "\e[0G[1] kc(Kitchen::Config)> instances.map { |i| i.name }\n/usr/lib/ruby/vendor_ruby/pry/history.rb:114:in `initialize': No such file or directory @ rb_sysopen - /sbuild-nonexistent/.pry_history (Errno::ENOENT)\n\tfrom /usr/lib/ruby/vendor_ruby/pry/history.rb:114:in `open'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/history.rb:114:in `history_file'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/history.rb:106:in `save_to_file'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/history.rb:50:in `call'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/history.rb:50:in `push'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/pry_instance.rb:267:in `handle_line'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/pry_instance.rb:243:in `block (2 levels) in eval'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/pry_instance.rb:242:in `catch'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/pry_instance.rb:242:in `block in eval'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/pry_instance.rb:241:in `catch'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/pry_instance.rb:241:in `eval'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/repl.rb:77:in `block in repl'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/repl.rb:67:in `loop'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/repl.rb:67:in `repl'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/repl.rb:38:in `block in start'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/input_lock.rb:61:in `call'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/input_lock.rb:61:in `__with_ownership'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/input_lock.rb:79:in `with_ownership'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/repl.rb:38:in `start'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/repl.rb:15:in `start'\n\tfrom /usr/lib/ruby/vendor_ruby/pry/pry_class.rb:169:in `start'\n\tfrom /build/test-kitchen-EWeo4Q/test-kitchen-1.4.1/debian/test-kitchen/usr/lib/ruby/vendor_ruby/kitchen/command/console.rb:33:in `call'\n\tfrom /build/test-kitchen-EWeo4Q/test-kitchen-1.4.1/debian/test-kitchen/usr/lib/ruby/vendor_ruby/kitchen/cli.rb:56:in `perform'\n\tfrom /build/test-kitchen-EWeo4Q/test-kitchen-1.4.1/debian/test-kitchen/usr/lib/ruby/vendor_ruby/kitchen/cli.rb:251:in `console'\n\tfrom /usr/lib/ruby/vendor_ruby/thor/command.rb:27:in `run'\n\tfrom /usr/lib/ruby/vendor_ruby/thor/invocation.rb:126:in `invoke_command'\n\tfrom /build/test-kitchen-EWeo4Q/test-kitchen-1.4.1/debian/test-kitchen/usr/lib/ruby/vendor_ruby/kitchen/cli.rb:308:in `invoke_task'\n\tfrom /usr/lib/ruby/vendor_ruby/thor.rb:359:in `dispatch'\n\tfrom /usr/lib/ruby/vendor_ruby/thor/base.rb:440:in `start'\n\tfrom /build/test-kitchen-EWeo4Q/test-kitchen-1.4.1/bin/kitchen:11:in `block in <main>'\n\tfrom /build/test-kitchen-EWeo4Q/test-kitchen-1.4.1/debian/test-kitchen/usr/lib/ruby/vendor_ruby/kitchen/errors.rb:154:in `with_friendly_errors'\n\tfrom /build/test-kitchen-EWeo4Q/test-kitchen-1.4.1/bin/kitchen:11:in `<main>'\n" to include "[\"default-flebian\", \"full-flebian\"]"
Diff:
@@ -1,2 +1,35 @@
-["default-flebian", "full-flebian"]
[1] kc(Kitchen::Config)> instances.map { |i| i.name }
+/usr/lib/ruby/vendor_ruby/pry/history.rb:114:in `initialize': No such file or directory @ rb_sysopen - /sbuild-nonexistent/.pry_history (Errno::ENOENT)
+       from /usr/lib/ruby/vendor_ruby/pry/history.rb:114:in `open'
+       from /usr/lib/ruby/vendor_ruby/pry/history.rb:114:in `history_file'
+       from /usr/lib/ruby/vendor_ruby/pry/history.rb:106:in `save_to_file'
+       from /usr/lib/ruby/vendor_ruby/pry/history.rb:50:in `call'
+       from /usr/lib/ruby/vendor_ruby/pry/history.rb:50:in `push'
+       from /usr/lib/ruby/vendor_ruby/pry/pry_instance.rb:267:in `handle_line'
+       from /usr/lib/ruby/vendor_ruby/pry/pry_instance.rb:243:in `block (2 levels) in eval'
+       from /usr/lib/ruby/vendor_ruby/pry/pry_instance.rb:242:in `catch'
+       from /usr/lib/ruby/vendor_ruby/pry/pry_instance.rb:242:in `block in eval'
+       from /usr/lib/ruby/vendor_ruby/pry/pry_instance.rb:241:in `catch'
+       from /usr/lib/ruby/vendor_ruby/pry/pry_instance.rb:241:in `eval'
+       from /usr/lib/ruby/vendor_ruby/pry/repl.rb:77:in `block in repl'
+       from /usr/lib/ruby/vendor_ruby/pry/repl.rb:67:in `loop'
+       from /usr/lib/ruby/vendor_ruby/pry/repl.rb:67:in `repl'
+       from /usr/lib/ruby/vendor_ruby/pry/repl.rb:38:in `block in start'
+       from /usr/lib/ruby/vendor_ruby/pry/input_lock.rb:61:in `call'
+       from /usr/lib/ruby/vendor_ruby/pry/input_lock.rb:61:in `__with_ownership'
+       from /usr/lib/ruby/vendor_ruby/pry/input_lock.rb:79:in `with_ownership'
+       from /usr/lib/ruby/vendor_ruby/pry/repl.rb:38:in `start'
+       from /usr/lib/ruby/vendor_ruby/pry/repl.rb:15:in `start'
+       from /usr/lib/ruby/vendor_ruby/pry/pry_class.rb:169:in `start'
+       from /build/test-kitchen-EWeo4Q/test-kitchen-1.4.1/debian/test-kitchen/usr/lib/ruby/vendor_ruby/kitchen/command/console.rb:33:in `call'
+       from /build/test-kitchen-EWeo4Q/test-kitchen-1.4.1/debian/test-kitchen/usr/lib/ruby/vendor_ruby/kitchen/cli.rb:56:in `perform'
+       from /build/test-kitchen-EWeo4Q/test-kitchen-1.4.1/debian/test-kitchen/usr/lib/ruby/vendor_ruby/kitchen/cli.rb:251:in `console'
+       from /usr/lib/ruby/vendor_ruby/thor/command.rb:27:in `run'
+       from /usr/lib/ruby/vendor_ruby/thor/invocation.rb:126:in `invoke_command'
+       from /build/test-kitchen-EWeo4Q/test-kitchen-1.4.1/debian/test-kitchen/usr/lib/ruby/vendor_ruby/kitchen/cli.rb:308:in `invoke_task'
+       from /usr/lib/ruby/vendor_ruby/thor.rb:359:in `dispatch'
+       from /usr/lib/ruby/vendor_ruby/thor/base.rb:440:in `start'
+       from /build/test-kitchen-EWeo4Q/test-kitchen-1.4.1/bin/kitchen:11:in `block in <main>'
+       from /build/test-kitchen-EWeo4Q/test-kitchen-1.4.1/debian/test-kitchen/usr/lib/ruby/vendor_ruby/kitchen/errors.rb:154:in `with_friendly_errors'
+       from /build/test-kitchen-EWeo4Q/test-kitchen-1.4.1/bin/kitchen:11:in `<main>'
 (RSpec::Expectations::ExpectationNotMetError)
features/kitchen_console_command.feature:30:in `Then the output should contain:'

Failing Scenarios:
cucumber features/kitchen_console_command.feature:25 # Scenario: Launching a session
--------------8<------------------------------

Attachment: signature.asc
Description: Digital signature


Reply to: