ci: start the dbus mock server in GN CI

This commit is contained in:
Jeremy Apthorp 2018-07-31 12:20:53 -07:00
parent a4f02724bf
commit 00b2d94785
3 changed files with 18 additions and 9 deletions

View file

@ -18,6 +18,9 @@ if sys.platform == 'linux2':
# will be picked up by electron.
try:
import lib.dbus_mock
import atexit
lib.dbus_mock.start()
atexit.register(lib.dbus_mock.stop)
except ImportError:
# If not available, the powerMonitor tests will be skipped since
# DBUS_SYSTEM_BUS_ADDRESS will not be set