Skip to contentSkip to conversation

netavark: Make ptest run

PATCH In review [email protected] 2 participants 2 messages May 15, 2024 – May 28, 2024 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 netavark: Make ptest run

From: Mingli Yu <[email protected]>

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
---
 recipes-containers/netavark/files/run-ptest | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
recipes-containers/netavark/files/run-ptest +7 -1
index 7e017ae2..f6f90b15 100644
@@ -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
+
Signature · 1 line
2.25.1
#2 lore raw

I've queued this for testing along with my other UNPACKDIR and go fetcher fixes.

Bruce

In message: [meta-virtualization] [PATCH] netavark: Make ptest run

Quoted 44 lines · Mingli via lists.yoctoproject.org

From: Mingli Yu <[email protected]>

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
---
 recipes-containers/netavark/files/run-ptest | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
recipes-containers/netavark/files/run-ptest +7 -1
index 7e017ae2..f6f90b15 100644
@@ -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
+
Signature · 11 lines
2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8724): https://lists.yoctoproject.org/g/meta-virtualization/message/8724
Mute This Topic: https://lists.yoctoproject.org/mt/106107836/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-