1 # Copyright (c) 2010 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 import logging, utils 6 from autotest_lib.client.bin import test 7 from autotest_lib.client.common_lib import error 8 9 class platform_KernelVersion(test.test): 10 version = 1 11 12 def run_once(self, kernel_version='3.8'): 13 try: 14 utils.check_kernel_ver(kernel_version) 15 except error.TestError, e: 16 logging.debug(e) 17 raise error.TestFail(e) 18