@@ -36,13 +36,52 @@ rustup self uninstall -y
3636# #######################################################################
3737# Build blktest #
3838# #######################################################################
39- # Change nuclearcat/blktests to kernelci/blktests to use the official
40- # repo as soon as the fix-ynl-location branch is merged.
41- BLKTEST_URL=https://github.com/nuclearcat/blktests.git
39+ BLKTEST_URL=https://github.com/linux-blktests/blktests.git
40+ BLKTESTS_SHA=a0519619
4241mkdir -p /var/tests/blktest && cd /var/tests/blktest
4342
4443git clone $BLKTEST_URL .
45- git checkout fix-ynl-location
44+ git checkout $BLKTESTS_SHA
45+
46+ # #####################################################################
47+ # Apply patch: See https://github.com/linux-blktests/blktests/pull/160
48+ # Author: Denys Fedoryshchenko <denys.f@collabora.com>
49+ # Fix: Update YNL CLI path after kernel commit ab88c2b3739a
50+ # Remove this after the PR is merged upstream
51+ # #####################################################################
52+ echo -e " \
53+ diff --git a/tests/nvme/056 b/tests/nvme/056
54+ index 2babe69..bdf0d67 100755
55+ --- a/tests/nvme/056
56+ +++ b/tests/nvme/056
57+ @@ -38,15 +38,15 @@ requires() {
58+
59+ have_netlink_cli() {
60+ local cli
61+ - cli=\"\$ {KERNELSRC}/tools/net/ynl/cli.py\"
62+ + cli=\"\$ {KERNELSRC}/tools/net/ynl/pyynl/cli.py\"
63+
64+ if ! [ -f \"\$ cli\" ]; then
65+ - SKIP_REASONS+=(\" Kernel sources do not have tools/net/ynl/cli.py\" )
66+ + SKIP_REASONS+=(\" Kernel sources do not have tools/net/ynl/pyynl/cli.py\" )
67+ return 1
68+ fi
69+
70+ if ! \"\$ cli\" -h &> /dev/null; then
71+ - SKIP_REASONS+=(\" Cannot run the kernel tools/net/ynl/cli.py\" )
72+ + SKIP_REASONS+=(\" Cannot run the kernel tools/net/ynl/pyynl/cli.py\" )
73+ return 1;
74+ fi
75+
76+ @@ -69,7 +69,7 @@ set_conditions() {
77+ }
78+
79+ netlink_cli() {
80+ - \"\$ {KERNELSRC}/tools/net/ynl/cli.py\" \\
81+ + \"\$ {KERNELSRC}/tools/net/ynl/pyynl/cli.py\" \\
82+ --spec \"\$ {KERNELSRC}/Documentation/netlink/specs/ulp_ddp.yaml\" \\
83+ \"\$ @\"
84+ }" | patch -p1
4685
4786make
4887make install
0 commit comments