]> git.hungrycats.org Git - linux/commit
selftests/bpf: Limit URLS parsing logic to actual scope in vmtest
authorPu Lehui <pulehui@huawei.com>
Thu, 5 Sep 2024 08:13:55 +0000 (08:13 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 5 Sep 2024 20:13:40 +0000 (13:13 -0700)
commit0c3fc330be6d85febd0f68b66c657c752e9cd63c
tree6974a136075b55c46c412698cdf0d730e7b782da
parent67ab80a01886a178c69c91728c49f94ccb71f338
selftests/bpf: Limit URLS parsing logic to actual scope in vmtest

The URLS array is only valid in the download_rootfs function and does
not need to be parsed globally in advance. At the same time, the logic
of loading rootfs is refactored to prepare vmtest for supporting local
rootfs.

Signed-off-by: Pu Lehui <pulehui@huawei.com>
Link: https://lore.kernel.org/r/20240905081401.1894789-5-pulehui@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/vmtest.sh