1 # SPDX-License-Identifier: GPL-2.0 2 3 import sys 4 from pathlib import Path 5 6 KSFT_DIR = (Path(__file__).parent / "../../../../..").resolve() 7 8 try: 9 sys.path.append(KSFT_DIR.as_posix()) 10 from net.lib.py import * 11 from drivers.net.lib.py import * 12 except ModuleNotFoundError as e: 13 ksft_pr("Failed importing `net` library from kernel sources") 14 ksft_pr(str(e)) 15 ktap_result(True, comment="SKIP") 16 sys.exit(4)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.