[Bug 932331] New: YaST rspec tests do not give any hint to file that cannot be loaded
http://bugzilla.suse.com/show_bug.cgi?id=932331 Bug ID: 932331 Summary: YaST rspec tests do not give any hint to file that cannot be loaded Classification: openSUSE Product: openSUSE Distribution Version: 13.2 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 Assignee: yast2-maintainers@suse.de Reporter: aschnell@suse.com QA Contact: jsrain@suse.com Found By: --- Blocker: --- Tests for two files in https://github.com/aschnell/yast-snapper fail if the regex in SnapperDbus.rb is constructed wrong, e.g. remove the n option from "ret.gsub!(/(\\|[\x80-\xff])/n)". All tests using SnapperDbus.rb fail but rspec does not give a hint that something is wrong with the file SnapperDbus.rb, thus making analysing the problem harder than necessary. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=932331
Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=932331
--- Comment #1 from Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=932331
Martin Vidner
From there, remove the n option on src/modules/SnapperDbus.rb:48)
The problem is that the yast component system eats the original exception: $ rspec test/*test.rb or $ rspec --backtrace test/*test.rb don't show it, but ~/.y2log does: 2015-05-27 15:14:37 <3> mrakoplas.suse.cz(7869) [Y2Ruby] binary/Y2RubyUtils.cc(y2_require):25 cannot require yast:/local/home-mvidner/svn/yast/snapper/src/modules/SnapperDbus.rb:51: invalid multibyte escape: /(\\|[\x80-\xff])/ at /usr/lib64/ruby/vendor_ruby/2.1.0/yast/yast.rb:162:in `import_pure' 2015-05-27 15:14:37 <3> mrakoplas.suse.cz(7869) [Interpreter] yast/i18n.rb:133 Ruby::loadModule() / Can't load ruby module '/local/home-mvidner/svn/yast/snapper/src/modules/SnapperDbus' 2015-05-27 15:14:37 <5> mrakoplas.suse.cz(7869) [Y2Ruby] binary/YRubyNamespace.cc(YRubyNamespace):219 The Ruby module 'SnapperDbus' is not provided by its rb file 2015-05-27 15:14:37 <3> mrakoplas.suse.cz(7869) [Interpreter] yast/i18n.rb:133 No table associated to module 'SnapperDbus' 2015-05-27 15:14:37 <3> mrakoplas.suse.cz(7869) [Ruby] binary/Yast.cc(getNs):64 ruby call: Can't import namespace 'SnapperDbus' 2015-05-27 15:14:37 <3> mrakoplas.suse.cz(7869) [Y2Ruby] binary/Y2RubyUtils.cc(y2_require):25 cannot require yast:component cannot import namespace 'SnapperDbus' at /usr/lib64/ruby/vendor_ruby/2.1.0/yast/yast.rb:162:in `import_pure' 2015-05-27 15:14:37 <3> mrakoplas.suse.cz(7869) [Interpreter] yast/i18n.rb:133 Ruby::loadModule() / Can't load ruby module '/local/home-mvidner/svn/yast/snapper/src/modules/Snapper' 2015-05-27 15:14:37 <1> mrakoplas.suse.cz(7869) [Y2Ruby] binary/YRuby.cc(~YRuby):107 Shutting down ruby interpreter. The problem is a combination of several problems. Compare: $ ruby -I src/modules/ -r SnapperDbus -e 1 /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': /local/home-mvidner/svn/yast/snapper/src/modules/SnapperDbus.rb:51: invalid multibyte escape: /(\\|[\x80-\xff])/ (SyntaxError) from /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' $ $ ruby -I src/modules/ -r yast -e 'Yast.import "SnapperDbus"' /usr/lib64/ruby/vendor_ruby/2.1.0/yast/yast.rb:162:in `import_pure': component cannot import namespace 'SnapperDbus' (NameError) from /usr/lib64/ruby/vendor_ruby/2.1.0/yast/yast.rb:162:in `import' from -e:1:in `<main>' [actual exception in y2log] $ ruby -I src/modules/ -r yast -e 'Yast.import "Snapper"' [no error! but it has failed like you reported] -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=932331
Martin Vidner
http://bugzilla.suse.com/show_bug.cgi?id=932331
--- Comment #3 from Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=932331
--- Comment #4 from Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=932331
--- Comment #5 from Martin Vidner
http://bugzilla.suse.com/show_bug.cgi?id=932331
--- Comment #7 from Martin Vidner
http://bugzilla.suse.com/show_bug.cgi?id=932331
Steffen Winterfeldt
http://bugzilla.suse.com/show_bug.cgi?id=932331
http://bugzilla.suse.com/show_bug.cgi?id=932331#c8
Martin Vidner
http://bugzilla.suse.com/show_bug.cgi?id=932331
http://bugzilla.suse.com/show_bug.cgi?id=932331#c9
--- Comment #9 from Martin Vidner
http://bugzilla.suse.com/show_bug.cgi?id=932331
http://bugzilla.suse.com/show_bug.cgi?id=932331#c10
--- Comment #10 from Stefan Hundhammer
http://bugzilla.suse.com/show_bug.cgi?id=932331
http://bugzilla.suse.com/show_bug.cgi?id=932331#c11
--- Comment #11 from Josef Reidinger
http://bugzilla.suse.com/show_bug.cgi?id=932331
http://bugzilla.suse.com/show_bug.cgi?id=932331#c12
--- Comment #12 from Martin Vidner
http://bugzilla.suse.com/show_bug.cgi?id=932331
http://bugzilla.suse.com/show_bug.cgi?id=932331#c13
--- Comment #13 from Josef Reidinger
http://bugzilla.suse.com/show_bug.cgi?id=932331
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=932331
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=932331
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=932331
http://bugzilla.suse.com/show_bug.cgi?id=932331#c15
--- Comment #15 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=932331
http://bugzilla.suse.com/show_bug.cgi?id=932331#c16
--- Comment #16 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=932331
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=932331
Gustavo Pichorim Boiko
http://bugzilla.suse.com/show_bug.cgi?id=932331
Josef Reidinger
http://bugzilla.suse.com/show_bug.cgi?id=932331
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com