aboutsummaryrefslogtreecommitdiff
path: root/test/dotnet/build_dotnet_7.sh
diff options
context:
space:
mode:
authorJP Ungaretti <git@jungaretti.com>2023-03-01 22:19:02 +0300
committerJP Ungaretti <git@jungaretti.com>2023-03-01 22:19:02 +0300
commitdcbd98f08ea034f90c06946af95387d55550efcb (patch)
tree9b74e75b36c814acb2b45532369538171368bb55 /test/dotnet/build_dotnet_7.sh
parentca6f581c8f1351886c6d802a287a7ec4e4c98f87 (diff)
Run project tests as non-root user
Diffstat (limited to 'test/dotnet/build_dotnet_7.sh')
-rw-r--r--test/dotnet/build_dotnet_7.sh2
1 files changed, 2 insertions, 0 deletions
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