Skip to contentSkip to conversation

tests reproducible_build.sh: Try first to find a vmlinux using pahole --running_kernel_vmlinux

PATCH Superseded Arnaldo Carvalho de Melo 1 participant 1 message Oct 1, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests reproducible_build.sh: Try first to find a vmlinux using pahole --running_kernel_vmlinux

Otherwise it stops working when called directly.

---
 tests/reproducible_build.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/reproducible_build.sh +2 -2
index a3603798a26de94c..b2e4d7af8e9ce35b 100755
@@ -4,8 +4,6 @@
 # Test if BTF generated serially matches reproducible parallel DWARF loading + serial BTF encoding
 # Arnaldo Carvalho de Melo <[email protected]> (C) 2024-
 
-vmlinux=${vmlinux:-1}
-
 if [ -z "$vmlinux" ] ; then
 	vmlinux=$(pahole --running_kernel_vmlinux)
 	if [ -z "$vmlinux" ] ; then
@@ -14,6 +12,8 @@ if [ -z "$vmlinux" ] ; then
 	fi
 fi
 
+vmlinux=${vmlinux:-1}
+
 if [ ! -f "$vmlinux" ] ; then
 	echo "$vmlinux file not available, please specify another"
 	exit 2
Signature · 1 line
2.46.2