tests/test_terminal.py: Ensure terminal state is restored at end of test
test_save, test_save_and_restore_with_dict: Ensure that we restore the
terminal state at the end of each test, as other tests rely on a clean
state to start. Previously, the tests would work the first time but fail
if re-run.
test_save: also compare self.terminal.orig_flags to the current
terminal flags, as opposed to a copy of itself (which would always pass)
NetworkManager 1.15.2 wants keyfiles in /run to have the .nmconnection extension (LP: #1817655)
This appeared in NM upstream as 648c256b9014198aac388097e410999c68c4b452; and
previous versions of NetworkManager do not seem to care, so land the changes in
general, without changes for previous Ubuntu releases.
GLib apparently has some differences in the order in which members are
iterated in a GHashTable, which leads to things outputting from a GHashTable
to turn up in different order depending on the GLib version used to build
the generator. Skip these tests on codecov.io: we do have a pretty good test
coverage anyway.