mirror of
https://passt.top/passt
synced 2024-12-22 05:35:23 +00:00
test: Verify that podman tests are using the pasta binary we expect
Paul Holzinger pointed out that when we invoke the podman tests inside the passt testsuite, the way we point podman at the newly built pasta binary is kind of indirect. It's therefore prudent to check that podman is actually using the binary we expect it to - in particular that it is using the binary built in this tree, not some system installed pasta binary. Suggested-by: Paul Holzinger <pholzing@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
489b28e216
commit
954589b64b
@ -13,7 +13,14 @@
|
|||||||
|
|
||||||
htools git make go bats ip jq socat ./test/podman/bin/podman
|
htools git make go bats ip jq socat ./test/podman/bin/podman
|
||||||
|
|
||||||
|
set PODMAN test/podman/bin/podman
|
||||||
|
hout WD pwd
|
||||||
|
|
||||||
|
test Podman pasta path
|
||||||
|
|
||||||
|
hout PASTA_BIN CONTAINERS_HELPER_BINARY_DIR="__WD__" __PODMAN__ info --format "{{.Host.Pasta.Executable}}"
|
||||||
|
check [ "__PASTA_BIN__" = "__WD__/pasta" ]
|
||||||
|
|
||||||
test Podman system test with bats
|
test Podman system test with bats
|
||||||
|
|
||||||
hout WD pwd
|
host PODMAN="__PODMAN__" CONTAINERS_HELPER_BINARY_DIR="__WD__" bats test/podman/test/system/505-networking-pasta.bats
|
||||||
host PODMAN="test/podman/bin/podman" CONTAINERS_HELPER_BINARY_DIR="__WD__" bats test/podman/test/system/505-networking-pasta.bats
|
|
||||||
|
Loading…
Reference in New Issue
Block a user