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" 15PY_VERSION = 3 16ATTRIBUTES = "suite:bvt-perbuild" 17 18DOC = """ 19This test: 201. Remove files from /mnt/stateful_partion directory. 212. Checks for OOBE screen after rebooting the device with 22 corrupted stateful partition. 233. Checks that sign in is possible after OOBE. 24 25The test fails if 26-Did not get OOBE after rebooting the device with corrupted stateful partition. 27Example usage: 28test_that -b <board> --args "servo_host=<servo_ip>" <dut_ip> platform_CompromisedStatefulPartition 29""" 30 31def run(machine): 32 host = hosts.create_host(machine) 33 job.run_test("platform_CompromisedStatefulPartition", host=host, 34 disable_sysinfo=True, client_test="desktopui_SimpleLogin") 35 36parallel_simple(run, machines) 37