mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-19 14:12:46 +08:00
tests/checks/exec: Match entire env line
This commit is contained in:
parent
494bdfa013
commit
0494b1b608
|
@ -12,7 +12,9 @@ echo "neg failed: $status"
|
||||||
#CHECK: neg failed: 0
|
#CHECK: neg failed: 0
|
||||||
|
|
||||||
# See that variable overrides are applied to exec'd processes
|
# 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
|
# CHECK: foo=bar
|
||||||
|
|
||||||
# This needs to be last, because it actually runs exec.
|
# This needs to be last, because it actually runs exec.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user