blob: ad93002501d4a32ce184a9635addd9cd55b637d9 [file] [log] [blame]
# Copyright 2013 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""An no-op test.
This test does nothing but waits for a given period of time.
The length of time is given in `wait_secs`.
Test Procedure
No user interaction is required, the test waits `wait_secs` seconds and pass.
To wait for 5 seconds, add this in test list::
"pytest_name": "nop",
"args": {
"wait_secs": 5
import time
import unittest
import factory_common # pylint: disable=unused-import
from cros.factory.utils.arg_utils import Arg
class NopTest(unittest.TestCase):
ARGS = [
Arg('wait_secs', (int, float), 'Wait for N seconds.', default=0)]
def runTest(self):
if self.args.wait_secs: