From b66b37bddfae6c25ab8146aae081e25ed554eafd Mon Sep 17 00:00:00 2001 From: Etienne Perot Date: Fri, 12 Jul 2024 20:22:54 -0700 Subject: vm/gvisor: smoke test script: allow specifying gVisor path as env var The gVisor smoke test script now accepts the `GVISOR_VMLINUX_PATH` environment variable. When set and non-empty, it will use this path to find the `runsc` runtime, rather than downloading it from the Internet. The intent is to use this as part of the gVisor testing pipeline using a locally-built version of the gVisor runtime (`runsc`). --- tools/gvisor-smoke-test.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'tools') diff --git a/tools/gvisor-smoke-test.sh b/tools/gvisor-smoke-test.sh index fdc75f64a..48f18da3c 100755 --- a/tools/gvisor-smoke-test.sh +++ b/tools/gvisor-smoke-test.sh @@ -2,7 +2,7 @@ # Copyright 2024 syzkaller project authors. All rights reserved. # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. -set -xe -o pipefail +set -xeuo pipefail workdir="$(mktemp -d /tmp/syzkaller-gvisor-test.XXXXXX)" @@ -32,10 +32,14 @@ cat > "$workdir/config" <