aboutsummaryrefslogtreecommitdiff
path: root/test/common-utils/devcontainer-custom-user-default-home.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/common-utils/devcontainer-custom-user-default-home.sh')
-rw-r--r--test/common-utils/devcontainer-custom-user-default-home.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/common-utils/devcontainer-custom-user-default-home.sh b/test/common-utils/devcontainer-custom-user-default-home.sh
new file mode 100644
index 0000000..f29bd7c
--- /dev/null
+++ b/test/common-utils/devcontainer-custom-user-default-home.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+set -e
+
+# Optional: Import test library
+source dev-container-features-test-lib
+
+# Definition specific tests
+check "user is customUser" grep customUser <(whoami)
+check "home is /home/customUser" grep "/home/customUser" <(getent passwd customUser | cut -d: -f6)
+
+# Report result
+reportResults