features/test/common-utils/devcontainer-custom-home.sh
Pablo Ulloa e7f7d194d6
[common-utils] fix bug when user home is custom by base docker (#703)
* [common-utils] fix bug when user home is custom by base docker

* bumped minor version

* reduced conditions to improve readability
2023-09-27 11:45:29 -07:00

14 lines
295 B
Bash

#!/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 /customHome" grep "/customHome" <(getent passwd customUser | cut -d: -f6)
# Report result
reportResults