File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 3333set -e
3434
3535# Optional: Import test library bundled with the devcontainer CLI
36+ # See https://github.com/devcontainers/cli/blob/HEAD/docs/features/test.md#dev-container-features-test-lib
3637# Provides the 'check' and 'reportResults' commands.
3738source dev-container-features-test-lib
3839
3940# Feature-specific tests
40- # The 'check' command comes from the dev-container-features-test-lib.
41-
41+ # The 'check' command comes from the dev-container-features-test-lib. Syntax is...
42+ # check <LABEL> <cmd> [args...]
4243check " validate favorite color" color | grep ' my favorite color is red'
4344
4445# Report result
Original file line number Diff line number Diff line change 3333set -e
3434
3535# Optional: Import test library bundled with the devcontainer CLI
36+ # See https://github.com/devcontainers/cli/blob/HEAD/docs/features/test.md#dev-container-features-test-lib
3637# Provides the 'check' and 'reportResults' commands.
3738source dev-container-features-test-lib
3839
3940# Feature-specific tests
40- # The 'check' command comes from the dev-container-features-test-lib.
41+ # The 'check' command comes from the dev-container-features-test-lib. Syntax is...
42+ # check <LABEL> <cmd> [args...]
4143check " execute command" bash -c " hello | grep 'hey, $( whoami) !'"
4244
4345# Report results
You can’t perform that action at this time.
0 commit comments