From def8acdcd846582df5939446be0d73d50971ab18 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Fri, 27 Sep 2024 18:43:16 +0200 Subject: test: Kernel binary can now be passed via the KERNEL environmental variable This is quite useful at least for myself as I'm usually running tests using a guest kernel that's not the same as the one on the host. Signed-off-by: Stefano Brivio Reviewed-by: David Gibson --- test/run | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/run') diff --git a/test/run b/test/run index cd6d707..547a729 100755 --- a/test/run +++ b/test/run @@ -38,6 +38,9 @@ TRACE=${TRACE:-0} # If set, tell passt and pasta to take packet captures PCAP=${PCAP:-0} +# Custom kernel to boot guests with, if given +KERNEL=${KERNEL:-"/boot/vmlinuz-$(uname -r)"} + COMMIT="$(git log --oneline --no-decorate -1)" . lib/util -- cgit v1.2.3