Home | History | Annotate | Download | only in power_Standby
      1 # Copyright 2018 The Chromium OS Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 AUTHOR = "Chrome OS Team"
      6 NAME = "power_Standby.fast_force_discharge"
      7 TIME = "MEDIUM"
      8 TEST_CATEGORY = "Benchmark"
      9 TEST_CLASS = "power"
     10 TEST_TYPE = "client"
     11 
     12 DOC = """
     13 This test measures the power draw during suspend.
     14 
     15 Test uses RTC wake to transition from suspend to S0 every sample_hours for a
     16 total standby time of test_hours.  The suspend to S0 transitions are added to
     17   1. Validate battery use
     18   2. Guarantee that suspend was maintained (no external/false wake)
     19   3. Create transitions which more closely model user's interaction.
     20 """
     21 
     22 args_dict = utils.args_to_dict(args)
     23 pdash_note = args_dict.get('pdash_note', '')
     24 job.run_test('power_Standby', sample_hours=0.334, test_hours=0.334,
     25              ac_ok=True, force_discharge=True, tag=NAME.split('.')[1],
     26              pdash_note=pdash_note)
     27