tests/checks/exec: Match entire env line

This commit is contained in:
Fabian Boehm 2025-01-19 18:47:28 +01:00
parent 494bdfa013
commit 0494b1b608

View File

@ -12,7 +12,9 @@ echo "neg failed: $status"
#CHECK: neg failed: 0
# See that variable overrides are applied to exec'd processes
$fish --no-config -c 'foo=bar exec env' | grep foo=bar
# Match the entire line because github actions passes commit messages in the environment,
# so any message that includes "foo=bar" would also be matched.
$fish --no-config -c 'foo=bar exec env' | grep '^foo=bar$'
# CHECK: foo=bar
# This needs to be last, because it actually runs exec.