summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorBobby Eshleman <bobbyeshleman@meta.com>2025-11-08 19:01:00 +0300
committerJakub Kicinski <kuba@kernel.org>2025-11-12 17:19:39 +0300
commit592e3d14cecf8ffebe718586f02007a082aa3193 (patch)
tree083dfd08393ce6ebfed16ef496d06058a34ff568 /tools/testing
parentd13fb04a4bf0811b593843f7d2385fac5cf313c8 (diff)
downloadlinux-592e3d14cecf8ffebe718586f02007a082aa3193.tar.xz
selftests/vsock: add BUILD=0 definition
Add the definition for BUILD and initialize it to zero. This avoids 'bash -u vmtest.sh` from throwing 'unbound variable' when BUILD is not set to 1 and is later checked for its value. Signed-off-by: Bobby Eshleman <bobbyeshleman@meta.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Link: https://patch.msgid.link/20251108-vsock-selftests-fixes-and-improvements-v4-9-d5e8d6c87289@meta.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing')
-rwxr-xr-xtools/testing/selftests/vsock/vmtest.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/vsock/vmtest.sh b/tools/testing/selftests/vsock/vmtest.sh
index a1c2969c44b6..e961b65b4c6e 100755
--- a/tools/testing/selftests/vsock/vmtest.sh
+++ b/tools/testing/selftests/vsock/vmtest.sh
@@ -548,6 +548,7 @@ run_shared_vm_test() {
return "${rc}"
}
+BUILD=0
QEMU="qemu-system-$(uname -m)"
while getopts :hvsq:b o