[PATCH dwarves 3/4] tests/reproducible_build: return 2 (skipped) if no vmlinux available

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

Distinguish between test skipping (2) and test failure (1).

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

diff --git a/tests/reproducible_build.sh b/tests/reproducible_build.sh
index 8a151a9..a360379 100755
--- a/tests/reproducible_build.sh
+++ b/tests/reproducible_build.sh
@@ -10,13 +10,13 @@ if [ -z "$vmlinux" ] ; then
vmlinux=$(pahole --running_kernel_vmlinux)
if [ -z "$vmlinux" ] ; then
echo "Please specify a vmlinux file to operate on"
- exit 1
+ exit 2
fi
fi

if [ ! -f "$vmlinux" ] ; then
echo "$vmlinux file not available, please specify another"
- exit 1
+ exit 2
fi

outdir=$(mktemp -d /tmp/reproducible_build.sh.XXXXXX)
--
2.43.5