From 7cdd07a736a7551660499e0260c7bbe2fa8fa054 Mon Sep 17 00:00:00 2001 From: Mingli Yu Date: Wed, 15 May 2024 10:54:30 +0800 Subject: [PATCH] netavark: Make ptest run Fixes: # ./run-ptest /tmp/bats-run-ELGGaA/bats.18820.src: line 5: To: command not found 1..1 not ok 1 bats-gather-tests # (in test file test/README.md, line 5) # `To run the tests locally in your sandbox, you can use one of these methods:' failed with status 127 Signed-off-by: Mingli Yu Signed-off-by: Bruce Ashfield --- recipes-containers/netavark/files/run-ptest | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/recipes-containers/netavark/files/run-ptest b/recipes-containers/netavark/files/run-ptest index 7e017ae2..f6f90b15 100644 --- a/recipes-containers/netavark/files/run-ptest +++ b/recipes-containers/netavark/files/run-ptest @@ -5,4 +5,10 @@ shopt -s extglob # Skip the plugin tests because those example plugins are built only while # running cargo test and for this to work as a ptest they would need to be cross # compiled and installed as part of the ptest. -NETAVARK=/usr/libexec/podman/netavark bats test/!(*-plugin.bats) +for i in `ls test`; do + if [ $i == "200-bridge-firewalld.bats" ] || [ $i == "500-plugin.bats" ] ; then + continue + fi + [ ${i: -4 -1} == ".bats" ] && NETAVARK=/usr/libexec/podman/netavark bats test/$i +done +