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 5from autotest_lib.server import utils 6 7AUTHOR = "sontis" 8NAME = "platform_CompromisedStatefulPartition" 9PURPOSE = "Compromised stateful partition test." 10CRITERIA = "This test will fail if unable to get OOBE with corrupted stateful partition." 11TIME = "SHORT" 12TEST_CATEGORY = "Functional" 13TEST_CLASS = "platform" 14TEST_TYPE = "server" 15ATTRIBUTES = "suite:bvt-perbuild" 16 17DOC = """ 18This test: 191. Remove files from /mnt/stateful_partion directory. 202. Checks for OOBE screen after rebooting the device with 21 corrupted stateful partition. 223. Checks that sign in is possible after OOBE. 23 24The test fails if 25-Did not get OOBE after rebooting the device with corrupted stateful partition. 26Example usage: 27test_that -b <board> --args "servo_host=<servo_ip>" <dut_ip> platform_CompromisedStatefulPartition 28""" 29 30def 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 35parallel_simple(run, machines) 36