From 0494b1b608754b51a881518efbe6a13d2d137d00 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Sun, 19 Jan 2025 18:47:28 +0100 Subject: [PATCH] tests/checks/exec: Match entire env line --- tests/checks/exec.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/checks/exec.fish b/tests/checks/exec.fish index 6868f1dbd..0df771f35 100644 --- a/tests/checks/exec.fish +++ b/tests/checks/exec.fish @@ -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.