• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2012 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
5NAME = "platform_KernelErrorPaths.HUNG_TASK"
6AUTHOR = "ChromeOS Team"
7ATTRIBUTES = "suite:kernel_per-build_regression, suite:pvs-kernel, suite:partners"
8TIME = "SHORT"
9TEST_CATEGORY = "Functional"
10TEST_CLASS = "platform"
11TEST_TYPE = "server"
12PY_VERSION = 3
13
14DOC = """
15This test uses lkdtm to cause the machine to have various serious failures
16(kernel panic, kernel bug, deadlock, etc.), and then check to make sure that
17these failures were properly logged and had appropritate consequences (reboot,
18logging, etc.).
19
20Pass the kernel crashes as a comma-delimited string of crash types.
21"""
22
23def run_kernel_error_paths(machine):
24    host = hosts.create_host(machine)
25    job.run_test("platform_KernelErrorPaths", tag="HUNG_TASK",
26                 kcrashes="HUNG_TASK", host=host)
27
28parallel_simple(run_kernel_error_paths, machines)
29