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 2
2
# SPDX-License-Identifier: GPL-2.0
3
3
# Runs tests for the HID subsystem
4
4
5
+ KSELFTEST_SKIP_TEST=4
6
+
5
7
if ! command -v python3 > /dev/null 2>&1 ; then
6
8
echo " hid-tools: [SKIP] python3 not installed"
7
- exit 77
9
+ exit $KSELFTEST_SKIP_TEST
8
10
fi
9
11
10
12
if ! 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
13
15
fi
14
16
15
17
if ! 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
18
20
fi
19
21
20
22
if ! 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
23
25
fi
24
26
25
27
TARGET=${TARGET:= .}
You can’t perform that action at this time.
0 commit comments