Home | History | Annotate | Download | only in dummy_PassServer
      1 # Copyright (c) 2013 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.client.common_lib import error
      6 from autotest_lib.client.common_lib import utils
      7 from autotest_lib.server import test
      8 
      9 class dummy_PassServer(test.test):
     10     """Tests that server tests can pass."""
     11     version = 1
     12 
     13     def run_once(self, expect_ssp=None):
     14         """There is no body for this test.
     15 
     16         @param expect_ssp: If True, ensure test is running inside a container.
     17                 If False, ensure test is not running inside a container.
     18                 If None (default), do nothing.
     19         """
     20         if expect_ssp is not None:
     21             if expect_ssp and not utils.is_in_container():
     22                 raise error.TestFail('The test is not running inside container')
     23             if not expect_ssp and utils.is_in_container():
     24                 raise error.TestFail('Test test is running inside container')
     25