diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2024-05-15 10:54:30 +0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-05-29 13:23:51 +0000 |
commit | 7cdd07a736a7551660499e0260c7bbe2fa8fa054 (patch) | |
tree | c9fd7700b8cf96d725aceaa36fca914bab81080f | |
parent | dd7724f447a11c76462353b9735f95cea19da942 (diff) | |
download | meta-virtualization-7cdd07a736a7551660499e0260c7bbe2fa8fa054.tar.gz |
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 <mingli.yu@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | recipes-containers/netavark/files/run-ptest | 8 |
1 files changed, 7 insertions, 1 deletions
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 | |||
5 | # Skip the plugin tests because those example plugins are built only while | 5 | # Skip the plugin tests because those example plugins are built only while |
6 | # running cargo test and for this to work as a ptest they would need to be cross | 6 | # running cargo test and for this to work as a ptest they would need to be cross |
7 | # compiled and installed as part of the ptest. | 7 | # compiled and installed as part of the ptest. |
8 | NETAVARK=/usr/libexec/podman/netavark bats test/!(*-plugin.bats) | 8 | for i in `ls test`; do |
9 | if [ $i == "200-bridge-firewalld.bats" ] || [ $i == "500-plugin.bats" ] ; then | ||
10 | continue | ||
11 | fi | ||
12 | [ ${i: -4 -1} == ".bats" ] && NETAVARK=/usr/libexec/podman/netavark bats test/$i | ||
13 | done | ||
14 | |||