From dcbd98f08ea034f90c06946af95387d55550efcb Mon Sep 17 00:00:00 2001 From: JP Ungaretti Date: Wed, 1 Mar 2023 19:19:02 +0000 Subject: Run project tests as non-root user --- test/dotnet/run_dotnet_7.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/dotnet/run_dotnet_7.sh') diff --git a/test/dotnet/run_dotnet_7.sh b/test/dotnet/run_dotnet_7.sh index ea66bd4..cde1d9d 100644 --- a/test/dotnet/run_dotnet_7.sh +++ b/test/dotnet/run_dotnet_7.sh @@ -4,6 +4,8 @@ set -e source dev-container-features-test-lib +check "non-root user" test "$(id -u)" -ne 0 + pushd example_project check "dotnet run" bash -c "dotnet run | grep 'Inception'" -- cgit v1.2.3