opnsense-src/tests/atf_python
Mark Johnston 83d175fc2e atf_python: Run vnet handlers in $HOME
When kyua runs a test, it creates a temp directory and sets $HOME to
point to it.  Tests are run with the cwd set to that temp directory.

When a process attaches to a jail, its cwd is set to the root of the
jail.  Modify atf_python to cd to $HOME instead, so that it's easier for
tests to share files.

Reviewed by:	zlei, ngie
MFC after:	2 weeks
Sponsored by:	Stormshield
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D54971

(cherry picked from commit 07940d1d85eb338853fcba0697c6b9a96412a7f2)
2026-02-16 13:43:18 +00:00
..
sys atf_python: Run vnet handlers in $HOME 2026-02-16 13:43:18 +00:00
__init__.py
atf_pytest.py atf_python: Fix a typo in a type annotation 2026-02-09 18:03:41 +00:00
ktest.py ktest: make ktest work with Netlink loaded as a module. 2023-06-13 06:04:14 +00:00
Makefile pkgbase: Put atf_python files in FreeBSD-tests 2023-10-12 20:15:03 +02:00
utils.py pf tests: skip TestHeader6::test_too_many if ipfilter is loaded 2025-06-06 13:16:00 +02:00