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@xxxxxxxxxx> --- 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@xxxxxxxxxx> (C) 2024- -vmlinux=$1 +vmlinux=${vmlinux:-1} if [ -z "$vmlinux" ] ; then vmlinux=$(pahole --running_kernel_vmlinux) -- 2.43.5