kselftest: Move ksft helper module to common directory
Move the ksft python module, which provides generic helpers for kselftests, to a common directory so it can be more easily shared between different tests. Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Acked-by: Shuah Khan <skhan@linuxfoundation.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/20240705-dev-err-log-selftest-v2-2-163b9cd7b3c1@collabora.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0debb20c5c
commit
0e7b7bde46
@@ -251,6 +251,7 @@ ifdef INSTALL_PATH
|
||||
install -m 744 kselftest/runner.sh $(INSTALL_PATH)/kselftest/
|
||||
install -m 744 kselftest/prefix.pl $(INSTALL_PATH)/kselftest/
|
||||
install -m 744 kselftest/ktap_helpers.sh $(INSTALL_PATH)/kselftest/
|
||||
install -m 744 kselftest/ksft.py $(INSTALL_PATH)/kselftest/
|
||||
install -m 744 run_kselftest.sh $(INSTALL_PATH)/
|
||||
rm -f $(TEST_LIST)
|
||||
@ret=1; \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
TEST_PROGS := test_discoverable_devices.py
|
||||
TEST_FILES := boards ksft.py
|
||||
TEST_FILES := boards
|
||||
|
||||
include ../../lib.mk
|
||||
|
||||
@@ -16,12 +16,17 @@
|
||||
|
||||
import argparse
|
||||
import glob
|
||||
import ksft
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import yaml
|
||||
|
||||
# Allow ksft module to be imported from different directory
|
||||
this_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
sys.path.append(os.path.join(this_dir, "../../kselftest/"))
|
||||
|
||||
import ksft
|
||||
|
||||
pci_controllers = []
|
||||
usb_controllers = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user