mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-08 03:08:09 +02:00
tests: Add missing trailing linefeeds to platform_profile tests
This commit is contained in:
parent
59c5bc1749
commit
c06f53cadc
1 changed files with 4 additions and 4 deletions
|
|
@ -447,7 +447,7 @@ class Tests(dbusmock.DBusTestCase):
|
|||
|
||||
# And mimick a user pressing a Fn+H
|
||||
with open(os.path.join(self.testbed.get_root_dir(), "sys/firmware/acpi/platform_profile"), 'w') as platform_profile:
|
||||
platform_profile.write('performance')
|
||||
platform_profile.write('performance\n')
|
||||
self.assertEventually(lambda: self.get_dbus_property('ActiveProfile') == 'performance')
|
||||
|
||||
def test_fake_driver(self):
|
||||
|
|
@ -497,9 +497,9 @@ class Tests(dbusmock.DBusTestCase):
|
|||
acpi_dir = os.path.join(self.testbed.get_root_dir(), "sys/firmware/acpi/")
|
||||
os.makedirs(acpi_dir)
|
||||
with open(os.path.join(acpi_dir, "platform_profile") ,'w') as profile:
|
||||
profile.write('')
|
||||
profile.write('\n')
|
||||
with open(os.path.join(acpi_dir, "platform_profile_choices") ,'w') as choices:
|
||||
choices.write('')
|
||||
choices.write('\n')
|
||||
|
||||
self.start_daemon()
|
||||
|
||||
|
|
@ -509,7 +509,7 @@ class Tests(dbusmock.DBusTestCase):
|
|||
with open(os.path.join(acpi_dir, "platform_profile_choices") ,'w') as choices:
|
||||
choices.write("low-power\nbalanced\nperformance\n")
|
||||
with open(os.path.join(acpi_dir, "platform_profile") ,'w') as profile:
|
||||
profile.write("performance")
|
||||
profile.write("performance\n")
|
||||
|
||||
# Wait for profiles to get reloaded
|
||||
self.assertEventually(lambda: len(self.get_dbus_property('Profiles')) == 3)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue