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.
`self.t` is only defined within the `try` block. If an exception is thrown and the try bails out, `self.t` is undefined. This causes the `finally` block to throw its own exception when it tries to call `self.t.reset`, and netplan crashes.