summaryrefslogtreecommitdiff
path: root/bin
diff options
authorMaciej Kisielewski <maciej.kisielewski@canonical.com>2015-08-05 13:24:14 +0200
committerMaciej Kisielewski <maciej.kisielewski@canonical.com>2015-08-05 13:24:14 +0200
commit7a5b5b38bf1fc0aff567ba64e0d588efb1c24152 (patch)
treef2ba332638497ae204ad19fcac004b73cd9ec42a /bin
parenta386e73026ac8adb74b3e61c346b1364bc665bd8 (diff)
providers:checkbox: add suspending option to pm_test
Signed-off-by: Maciej Kisielewski <maciej.kisielewski@canonical.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pm_test5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/pm_test b/bin/pm_test
index 827758fa..c9cfd4bf 100755
--- a/bin/pm_test
+++ b/bin/pm_test
@@ -782,6 +782,11 @@ class MyArgumentParser(object):
# Total number of iterations initially passed through the command line
parser.add_argument('--total', type=int, default=0, help=SUPPRESS)
+
+ # suspend cycles before reboot
+ parser.add_argument('--suspends-before-reboot', type=int, default=0,
+ help=('How many cycles of suspend/resume to run'
+ 'before each reboot or poweroff'))
self.parser = parser
def parse(self):