From 3ced2b3a203df248c460738324a4c8852bd93017 Mon Sep 17 00:00:00 2001 From: Reactor Scram Date: Fri, 15 Mar 2024 14:06:57 -0500 Subject: [PATCH] ci(linux): fix incorrect use of `grep -v` (#4151) I think I used `-v` wrong here. I meant it to negate a regular grep, but it will probably always return true since it negates the matching, not the exit code. --------- Signed-off-by: Reactor Scram --- scripts/tests/dns-etc-resolvconf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tests/dns-etc-resolvconf.sh b/scripts/tests/dns-etc-resolvconf.sh index 19c62bb3c..5f5437438 100755 --- a/scripts/tests/dns-etc-resolvconf.sh +++ b/scripts/tests/dns-etc-resolvconf.sh @@ -40,7 +40,7 @@ echo "# Make sure it's going through the tunnel" client_nslookup "$HTTPBIN" | grep "100\\.96\\.0\\." echo "# Make sure a non-resource doesn't go through the tunnel" -client_nslookup "github.com" | grep -v "100\\.96.\\0\\." +(client_nslookup "github.com" | grep "100\\.96.\\0\\.") && exit 1 echo "# Stop the gateway and make sure the resource is inaccessible" docker compose stop gateway