| # Copyright 2013 The ChromiumOS Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| This test does nothing but waits for a given period of time. |
| The length of time is given in `wait_secs`. |
| No user interaction is required, the test waits `wait_secs` seconds and pass. |
| To wait for 5 seconds, add this in test list:: |
| from typing import Tuple, Union |
| from cros.factory.test import test_tags |
| from cros.factory.utils.arg_utils import Arg |
| wait_secs: Union[int, float] |
| class NopTest(unittest.TestCase): |
| related_components: Tuple[test_tags.TestCategory, ...] = () |
| ARGS = [Arg('wait_secs', (int, float), 'Wait for N seconds.', default=0)] |
| time.sleep(self.args.wait_secs) |