Home | History | Annotate | Download | only in platform_CompromisedStatefulPartition
      1 # Copyright (c) 2014 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 from autotest_lib.server import utils
      6 
      7 AUTHOR = "sontis"
      8 NAME = "platform_CompromisedStatefulPartition"
      9 PURPOSE = "Compromised stateful partition test."
     10 CRITERIA = "This test will fail if unable to get OOBE with corrupted stateful partition."
     11 TIME = "SHORT"
     12 TEST_CATEGORY = "Functional"
     13 TEST_CLASS = "platform"
     14 TEST_TYPE = "server"
     15 ATTRIBUTES = "suite:bvt-perbuild"
     16 
     17 DOC = """
     18 This test:
     19 1. Remove files from /mnt/stateful_partion directory.
     20 2. Checks for OOBE screen after rebooting the device with
     21    corrupted stateful partition.
     22 3. Checks that sign in is possible after OOBE.
     23 
     24 The test fails if
     25 -Did not get OOBE after rebooting the device with corrupted stateful partition.
     26 Example usage:
     27 test_that -b <board> --args "servo_host=<servo_ip>" <dut_ip> platform_CompromisedStatefulPartition
     28 """
     29 
     30 def run(machine):
     31     host = hosts.create_host(machine)
     32     job.run_test("platform_CompromisedStatefulPartition", host=host,
     33                  disable_sysinfo=True, client_autotest="desktopui_SimpleLogin")
     34 
     35 parallel_simple(run, machines)
     36