[PATCH dwarves 1/4] tests/reproducible_builds: support envvar-specified vmlinux

Alan Maguire
2024-10-01T11:46:36Z

for running "tests" script on systems on which vmlinux is not
locatable via pahole, it is useful to be able to specify a
path to vmlinux that works across tests like this:

$ vmlinux=/path2/vmlinux bash ./tests

Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
---
tests/reproducible_build.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/reproducible_build.sh b/tests/reproducible_build.sh
index e3c5c23..8a151a9 100755
--- a/tests/reproducible_build.sh
+++ b/tests/reproducible_build.sh
@@ -4,7 +4,7 @@
# Test if BTF generated serially matches reproducible parallel DWARF loading + serial BTF encoding
# Arnaldo Carvalho de Melo <acme@redhat.com> (C) 2024-

-vmlinux=$1
+vmlinux=${vmlinux:-1}