[Bug 1817660] Re: test_terminal.TestTerminal tests fail when run a second time

Launchpad Bug Tracker 1817660 at bugs.launchpad.net
Thu Mar 14 20:59:51 UTC 2019


This bug was fixed in the package netplan.io - 0.96-0ubuntu2

---------------
netplan.io (0.96-0ubuntu2) disco; urgency=medium

  * d/p/0001-Automatically-skip-tests-when-wifi-is-clearly-unavai.patch:
    Update wifi tests to try to make them more reliable.
  * debian/tests/control: explicilty mark wifi tests flaky.

 -- Mathieu Trudel-Lapierre <cyphermox at ubuntu.com>  Thu, 14 Mar 2019
14:11:47 -0400

** Changed in: netplan.io (Ubuntu)
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/1817660

Title:
  test_terminal.TestTerminal tests fail when run a second time

Status in netplan:
  Fix Released
Status in netplan.io package in Ubuntu:
  Fix Released

Bug description:
  [Impact]
  Limited to automatic testing run for netplan.

  [Test cases]
  1) Run 'make check' on netplan source twice.
  2) Verify the tests pass both times.

  [Regression potential]
  None.

  ---

  Several tests related setting terminal flags in
  test_terminal.TestTerminal fail when run a second time on the same
  terminal. They succeed the first time, then fail until you open a new
  terminal or SSH session.

  The cause appears to be that multiple tests such as test_save and
  test_save_and_restore_with_dict do not restore the terminal back to
  it's original clean state (O_NONBLOCK is left enabled) because the
  calls to .save() mean that .reset() restores back to that saved state.

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/1817660/+subscriptions



More information about the foundations-bugs mailing list