719901a1b4
* [common-utils] Bug fix: zsp missing rc snippet * condion rc snippet * fix bug * remove debugging step
16 lines
536 B
Bash
16 lines
536 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Optional: Import test library
|
|
source dev-container-features-test-lib
|
|
|
|
# Definition specific tests
|
|
check "default-shell-is-zsh" bash -c "getent passwd $(whoami) | awk -F: '{ print $7 }' | grep '/bin/zsh'"
|
|
# check it overrides the ~/.zshrc with default dev containers template
|
|
check "default-zshrc-is-dev-container-template" bash -c "cat ~/.zshrc | grep ZSH_THEME | grep devcontainers"
|
|
check "zsh-path-contains-local-bin" zsh -l -c "echo $PATH | grep '/home/devcontainer/.local/bin'"
|
|
|
|
# Report result
|
|
reportResults
|