[Bug 937026] New: [libyui-ncurses] cannot run RSpec tests using libyui-ncurses
http://bugzilla.opensuse.org/show_bug.cgi?id=937026 Bug ID: 937026 Summary: [libyui-ncurses] cannot run RSpec tests using libyui-ncurses Classification: openSUSE Product: openSUSE Factory Version: 201505* Hardware: Other URL: https://trello.com/c/h4uP604i/208-3-12-sp1-i-318486-ne w-package-yast2-journal OS: Other Status: CONFIRMED Severity: Normal Priority: P5 - None Component: YaST2 Assignee: mvidner@suse.com Reporter: mvidner@suse.com QA Contact: jsrain@suse.com CC: ancor@suse.com Found By: --- Blocker: --- In https://github.com/yast/yast-journal/pull/15 we pilot a way to run UI unit tests with RSpec, where the UI library is only partially mocked. Notably, the dialogs are constructed and displayed. The problem is that libyui-ncurses appropriates and closes stdout. RSpec then wants to write a progress report and the test crashes, while the ncurses cleanup routine hides the backtrace (it is visible if run via strace). One way to work around the problem is to run `rspec --out log_file` but that would interfere too much with regular testing. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=937026
http://bugzilla.opensuse.org/show_bug.cgi?id=937026#c1
--- Comment #1 from Martin Vidner
http://bugzilla.opensuse.org/show_bug.cgi?id=937026
http://bugzilla.opensuse.org/show_bug.cgi?id=937026#c2
--- Comment #2 from Martin Vidner
http://bugzilla.opensuse.org/show_bug.cgi?id=937026
http://bugzilla.opensuse.org/show_bug.cgi?id=937026#c3
Martin Vidner
http://bugzilla.opensuse.org/show_bug.cgi?id=937026
http://bugzilla.opensuse.org/show_bug.cgi?id=937026#c4
Martin Vidner
http://bugzilla.opensuse.org/show_bug.cgi?id=937026
http://bugzilla.opensuse.org/show_bug.cgi?id=937026#c5
Martin Vidner
http://bugzilla.opensuse.org/show_bug.cgi?id=937026
http://bugzilla.opensuse.org/show_bug.cgi?id=937026#c6
Jiri Srain
http://bugzilla.opensuse.org/show_bug.cgi?id=937026
http://bugzilla.opensuse.org/show_bug.cgi?id=937026#c7
Martin Vidner
http://bugzilla.opensuse.org/show_bug.cgi?id=937026
http://bugzilla.opensuse.org/show_bug.cgi?id=937026#c8
--- Comment #8 from Martin Vidner
http://bugzilla.opensuse.org/show_bug.cgi?id=937026
http://bugzilla.opensuse.org/show_bug.cgi?id=937026#c9
--- Comment #9 from Martin Vidner
participants (1)
-
bugzilla_noreply@novell.com