Skip to content

Commit

Permalink
fixup! chore: add more tests, benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
deansheather committed Apr 15, 2024
1 parent 5b6c40a commit 0b78a82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bench/bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ if [[ "${#args[@]}" -eq 0 ]]; then
fi

# Start the go test process in a new PID namespace and exec with sudo.
uid=$(id -u)
gid=$(id -g)
go_binary=$(command -v go)
set -x
exec sudo -E unshare --pid --fork --setuid "$(id -u)" --setgid "$(id -g)" -- "$go_binary" test -exec sudo "${args[@]}"
exec sudo -E unshare --pid --fork --setuid "$uid" --setgid "$gid" -- "$go_binary" test -exec sudo "${args[@]}"

0 comments on commit 0b78a82

Please sign in to comment.