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/build_dotnet_7.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/dotnet/build_dotnet_7.sh') diff --git a/test/dotnet/build_dotnet_7.sh b/test/dotnet/build_dotnet_7.sh index 62e950c..813282c 100644 --- a/test/dotnet/build_dotnet_7.sh +++ b/test/dotnet/build_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 restore" dotnet restore check "dotnet build" dotnet build -- cgit v1.2.3