Skip to content

Commit cc5803a

Browse files
vigneshramannuclearcat
authored andcommitted
config: rootfs: blktest: use upstream repo
Use the upstream repo instead of the temporary fork and apply the patch to update the YNL CLI path. Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com>
1 parent 870bbb1 commit cc5803a

1 file changed

Lines changed: 43 additions & 4 deletions

File tree

config/rootfs/debos/scripts/bookworm-blktest.sh

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
4241
mkdir -p /var/tests/blktest && cd /var/tests/blktest
4342

4443
git 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

4786
make
4887
make install

0 commit comments

Comments
 (0)