From 0132075d470510a46db887cd7504e6c0217601bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Wed, 25 Feb 2026 16:09:10 +0100 Subject: [PATCH] fix: simplified expression in 'test_pgsql_replication_lag' TAP scripts --- .../test_pgsql_replication_lag/delete_primary_vintf_throttle.sh | 2 +- .../test_pgsql_replication_lag/setup_primary_vintf_throttle.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tap/tests/test_pgsql_replication_lag/delete_primary_vintf_throttle.sh b/test/tap/tests/test_pgsql_replication_lag/delete_primary_vintf_throttle.sh index 62135e00a..9a5e6d9d7 100755 --- a/test/tap/tests/test_pgsql_replication_lag/delete_primary_vintf_throttle.sh +++ b/test/tap/tests/test_pgsql_replication_lag/delete_primary_vintf_throttle.sh @@ -5,7 +5,7 @@ set -e rsubnet=$(docker exec --user root pgsql-repl-pg_replica-1 sh -c \ 'getent hosts pg_primary_int | cut -d" " -f1') vintf=$(docker exec --user root pgsql-repl-pg_primary-1 sh -c \ - "echo $rsubnet | xargs ip route show to match | grep -E "$rsubnet" | cut -d' ' -f3") + "ip route show to match \"$rsubnet\" | grep -E \"$rsubnet\" | cut -d' ' -f3") tbf_count=$(docker exec --user root pgsql-repl-pg_primary-1 sh -c \ "tc qdisc list dev $vintf | grep 'qdisc tbf' | wc -l") diff --git a/test/tap/tests/test_pgsql_replication_lag/setup_primary_vintf_throttle.sh b/test/tap/tests/test_pgsql_replication_lag/setup_primary_vintf_throttle.sh index 5ea7e963d..3f8395e4a 100755 --- a/test/tap/tests/test_pgsql_replication_lag/setup_primary_vintf_throttle.sh +++ b/test/tap/tests/test_pgsql_replication_lag/setup_primary_vintf_throttle.sh @@ -5,7 +5,7 @@ set -e rsubnet=$(docker exec --user root pgsql-repl-pg_replica-1 sh -c \ 'getent hosts pg_primary_int | cut -d" " -f1') vintf=$(docker exec --user root pgsql-repl-pg_primary-1 sh -c \ - "echo $rsubnet | xargs ip route show to match | grep -E "$rsubnet" | cut -d' ' -f3") + "ip route show to match \"$rsubnet\" | grep -E \"$rsubnet\" | cut -d' ' -f3") tbf_count=$(docker exec --user root pgsql-repl-pg_primary-1 sh -c \ "tc qdisc list dev $vintf | grep 'qdisc tbf' | wc -l")