test: replace hard-coded 'podman' with discovered $(runner)

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2024-04-15 15:36:41 +02:00
parent e18ddcf0c8
commit acef9aecde
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -31,5 +31,5 @@ runner()
#
infamy()
{
podman ps -f name='infamy.*' --format '{{.Names}}' |tail -1
$(runner) ps -f name='infamy.*' --format '{{.Names}}' |tail -1
}
+1 -1
View File
@@ -26,7 +26,7 @@ usage()
topo()
{
dir=$(podman inspect "$1" 2>/dev/null | jq -re '.[].Args | index("-q") as $index | .[$index+1]')
dir=$($(runner) inspect "$1" 2>/dev/null | jq -re '.[].Args | index("-q") as $index | .[$index+1]')
dot="$dir/topology.dot.in"
[ -f "$dot" ] && echo "$dot"
}