tests: various refactoring in tools/test-networkmanager-service.py

- no more global variables, except those in the new variable "gl".

- don't pass that bus instance around. Use the singleton gl.bus.

- separate creation of ExportedObj from exporting on D-Bus.

- use enum values loaded from NM via GObject introspection.

- the visible change is that the generated D-Bus paths now start
  counting at one. That is also how NetworkManager behaves, and
  it looks nicer to have no zero ID for an object.
This commit is contained in:
Thomas Haller
2018-05-14 14:22:09 +02:00
parent beca21be80
commit f563a6dfeb
14 changed files with 406 additions and 441 deletions

File diff suppressed because it is too large Load Diff