power: Fix scenario tester running upowerd under jhbuild
A logic error meant that the systemd upowerd would always be used.
This commit is contained in:
parent
e19d64a5fb
commit
0947ae2557
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ class GccDBusTestCase(DBusTestCase):
|
|||
if not GLib.file_test(klass.upowerd_path, GLib.FileTest.IS_EXECUTABLE):
|
||||
klass.upowerd_path = None
|
||||
|
||||
if os.environ.get('UNDER_JHBUILD', False) or klass.upowerd_path == None:
|
||||
if not os.environ.get('UNDER_JHBUILD', False) or klass.upowerd_path == None:
|
||||
klass.upowerd_path = None
|
||||
with open('/usr/share/dbus-1/system-services/org.freedesktop.UPower.service') as f:
|
||||
for line in f:
|
||||
|
|
Loading…
Add table
Reference in a new issue