From b4a216c2b37ebf19ce0f101c66bc6b252ce8c59c Mon Sep 17 00:00:00 2001 From: James Mayclin Date: Fri, 3 Mar 2023 22:16:08 +0000 Subject: [PATCH] set -e for script --- netbench/README.md | 3 +++ netbench/scripts/netbench-run.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/netbench/README.md b/netbench/README.md index a29b8eace7..5cdf02a0bd 100644 --- a/netbench/README.md +++ b/netbench/README.md @@ -37,6 +37,9 @@ python3 -m http.server 9000 ``` Then navigate to `localhost:9000` in a browser to view the netbench results. +Note that this script does not support bpftrace, as it runs without any of the +elevated permissions required for bpf programs. + ## How it works ### netbench-scenarios diff --git a/netbench/scripts/netbench-run.sh b/netbench/scripts/netbench-run.sh index 7afe555895..aadd431e1f 100755 --- a/netbench/scripts/netbench-run.sh +++ b/netbench/scripts/netbench-run.sh @@ -4,6 +4,9 @@ # SPDX-License-Identifier: Apache-2.0 # +# immediately exit if an error occurs. +set -e + ARTIFACT_FOLDER="target/release" NETBENCH_ARTIFACT_FOLDER="target/netbench"