File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
tools/testing/selftests/hid Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 22# SPDX-License-Identifier: GPL-2.0
33# Runs tests for the HID subsystem
44
5+ KSELFTEST_SKIP_TEST=4
6+
57if ! command -v python3 > /dev/null 2>&1 ; then
68 echo " hid-tools: [SKIP] python3 not installed"
7- exit 77
9+ exit $KSELFTEST_SKIP_TEST
810fi
911
1012if ! python3 -c " import pytest" > /dev/null 2>&1 ; then
11- echo " hid: [SKIP/ pytest module not installed"
12- exit 77
13+ echo " hid: [SKIP] pytest module not installed"
14+ exit $KSELFTEST_SKIP_TEST
1315fi
1416
1517if ! python3 -c " import pytest_tap" > /dev/null 2>&1 ; then
16- echo " hid: [SKIP/ pytest_tap module not installed"
17- exit 77
18+ echo " hid: [SKIP] pytest_tap module not installed"
19+ exit $KSELFTEST_SKIP_TEST
1820fi
1921
2022if ! python3 -c " import hidtools" > /dev/null 2>&1 ; then
21- echo " hid: [SKIP/ hid-tools module not installed"
22- exit 77
23+ echo " hid: [SKIP] hid-tools module not installed"
24+ exit $KSELFTEST_SKIP_TEST
2325fi
2426
2527TARGET=${TARGET:= .}
You can’t perform that action at this time.
0 commit comments