fix: simplified expression in 'test_pgsql_replication_lag' TAP scripts

pull/5422/head
Javier Jaramago Fernández 3 months ago
parent 35254fad8c
commit 0132075d47

@ -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")

@ -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")

Loading…
Cancel
Save