diff options
| author | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2022-12-29 19:07:34 +0000 |
|---|---|---|
| committer | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2022-12-29 19:59:11 +0000 |
| commit | f63825ff21a3bee2630ea8b0ed27a4583cc4242b (patch) | |
| tree | 39722fc957e83ca73dfc200463def1fe4b772092 /tests/atf_python/utils.py | |
| parent | 7063b9974f8a39d860b7abd03884324e71994f65 (diff) | |
Diffstat (limited to 'tests/atf_python/utils.py')
| -rw-r--r-- | tests/atf_python/utils.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/atf_python/utils.py b/tests/atf_python/utils.py index 12cd56c10149..17824262b1fd 100644 --- a/tests/atf_python/utils.py +++ b/tests/atf_python/utils.py @@ -42,5 +42,15 @@ class BaseTest(object): "kernel module '{}' not available: {}".format(mod_name, err_str) ) - def check_constraints(self): + @property + def test_id(self): + # 'test_ip6_output.py::TestIP6Output::test_output6_pktinfo[ipandif] (setup)' + return os.environ.get("PYTEST_CURRENT_TEST").split(" ")[0] + + def setup_method(self, method): + """Run all pre-requisits for the test execution""" self._check_modules() + + def cleanup(self, test_id: str): + """Cleanup all test resources here""" + pass |
