diff -Nru plainbox-provider-checkbox-0.25/debian/changelog plainbox-provider-checkbox-0.25/debian/changelog --- plainbox-provider-checkbox-0.25/debian/changelog 2016-01-19 20:47:37.000000000 +0000 +++ plainbox-provider-checkbox-0.25/debian/changelog 2016-12-07 09:15:54.000000000 +0000 @@ -1,3 +1,10 @@ +plainbox-provider-checkbox (0.25-2) unstable; urgency=medium + + * debian/patches: Drop pm-utils (the provider scripts will use systemd + services). + + -- Sylvain Pineau Wed, 07 Dec 2016 10:15:54 +0100 + plainbox-provider-checkbox (0.25-1) unstable; urgency=medium * New upstream maintenance release diff -Nru plainbox-provider-checkbox-0.25/debian/control plainbox-provider-checkbox-0.25/debian/control --- plainbox-provider-checkbox-0.25/debian/control 2016-01-18 21:32:24.000000000 +0000 +++ plainbox-provider-checkbox-0.25/debian/control 2016-12-07 09:15:54.000000000 +0000 @@ -12,7 +12,7 @@ python3-checkbox-support (>= 0.22), python3-debian, python3-plainbox (>= 0.24) -Standards-Version: 3.9.6 +Standards-Version: 3.9.8 Vcs-Svn: svn://anonscm.debian.org/python-apps/packages/plainbox-provider-checkbox/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-apps/packages/plainbox-provider-checkbox/trunk/ Homepage: http://launchpad.net/checkbox @@ -30,7 +30,6 @@ gstreamer1.0-plugins-good, gstreamer1.0-pulseaudio, libgstreamer1.0-0, - pm-utils, python3-apt, python3-dbus, python3-gi, diff -Nru plainbox-provider-checkbox-0.25/debian/patches/drop-pm-utils plainbox-provider-checkbox-0.25/debian/patches/drop-pm-utils --- plainbox-provider-checkbox-0.25/debian/patches/drop-pm-utils 1970-01-01 00:00:00.000000000 +0000 +++ plainbox-provider-checkbox-0.25/debian/patches/drop-pm-utils 2016-12-07 09:15:54.000000000 +0000 @@ -0,0 +1,83 @@ +--- a/bin/graphics_stress_test ++++ b/bin/graphics_stress_test +@@ -117,15 +117,11 @@ + def do_suspend(self, mode): + ''' + Suspend the system and hope it wakes up. +- Previously tried writing new state to /sys/power/state but that +- seems to put the system into an uncrecoverable S3 state. So far, +- pm-suspend seems to be the most reliable way to go. +- + ''' + if mode == 'mem': +- status = call('/usr/sbin/pm-suspend') ++ status = call(['systemctl', 'suspend']) + elif mode == 'disk': +- status = call('/usr/sbin/pm-hibernate') ++ status = call(['systemctl', 'hibernate']) + else: + logging.debug('Unknown sleep state passed') + status == 1 +--- a/bin/sleep_test ++++ b/bin/sleep_test +@@ -132,10 +132,6 @@ + def DoSuspend(self, mode): + ''' + Suspend the system and hope it wakes up. +- Previously tried writing new state to /sys/power/state but that +- seems to put the system into an uncrecoverable S3 state. So far, +- pm-suspend seems to be the most reliable way to go. +- + ''' + # Set up our start and finish markers + self.time_stamp = self.GetCurrentTime() +@@ -144,9 +140,9 @@ + self.MarkLog(self.start_marker) + + if mode == 'mem': +- status = call('/usr/sbin/pm-suspend') ++ status = call(['systemctl', 'suspend']) + elif mode == 'disk': +- status = call('/usr/sbin/pm-hibernate') ++ status = call(['systemctl', 'hibernate']) + else: + logging.debug('Unknown sleep state passed: %s' % mode) + status == 1 +@@ -154,7 +150,7 @@ + if status == 0: + logging.debug('Successful suspend') + else: +- logging.debug('Error while running pm-suspend') ++ logging.debug('Error while running suspend command') + self.MarkLog(self.end_marker) + + def GetResults(self, mode, perf): +--- a/jobs/suspend.txt.in ++++ b/jobs/suspend.txt.in +@@ -305,7 +305,7 @@ + id: suspend/`echo ${index}`_hybrid_sleep_`echo "${product}" | sed 's/ /_/g;s/[^_a-zA-Z0-9-]//g'` + user: root + command: +- set -o pipefail; fwts_test -f none -l $PLAINBOX_SESSION_SHARE/`echo ${index}`_hybrid_sleep_single -s s3 --s3-hybrid --s3-sleep-delay=30 --s3-device-check --s3-device-check-delay=45 --pm-method=pm-utils | tee $PLAINBOX_SESSION_SHARE/`echo ${index}`_hybrid_sleep_single_times.log ++ set -o pipefail; fwts_test -f none -l $PLAINBOX_SESSION_SHARE/`echo ${index}`_hybrid_sleep_single -s s3 --s3-hybrid --s3-sleep-delay=30 --s3-device-check --s3-device-check-delay=45 | tee $PLAINBOX_SESSION_SHARE/`echo ${index}`_hybrid_sleep_single_times.log + estimated_duration: 90.0 + _description: + PURPOSE: +@@ -409,7 +409,7 @@ + user: root + depends: suspend/suspend_advanced + estimated_duration: 120.0 +-command: pm-suspend ++command: systemctl suspend + _description: + PURPOSE: + Wake up by USB keyboard +@@ -426,7 +426,7 @@ + user: root + depends: suspend/suspend_advanced + estimated_duration: 120.0 +-command: pm-suspend ++command: systemctl suspend + _description: + PURPOSE: + Wake up by USB mouse diff -Nru plainbox-provider-checkbox-0.25/debian/patches/series plainbox-provider-checkbox-0.25/debian/patches/series --- plainbox-provider-checkbox-0.25/debian/patches/series 2016-01-18 21:32:23.000000000 +0000 +++ plainbox-provider-checkbox-0.25/debian/patches/series 2016-12-07 09:15:54.000000000 +0000 @@ -1 +1,2 @@ remove-module-init-tools +drop-pm-utils