* [PATCH] netavark: Make ptest run
[not found] <17C92B9B397D8953.1247@lists.yoctoproject.org>
@ 2024-05-15 2:54 ` mingli.yu
2024-05-28 19:14 ` [meta-virtualization] " Bruce Ashfield
0 siblings, 1 reply; 2+ messages in thread
From: mingli.yu @ 2024-05-15 2:54 UTC (permalink / raw)
To: meta-virtualization, patrick.wicki
From: Mingli Yu <mingli.yu@windriver.com>
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>
---
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
+
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [meta-virtualization] [PATCH] netavark: Make ptest run
2024-05-15 2:54 ` [PATCH] netavark: Make ptest run mingli.yu
@ 2024-05-28 19:14 ` Bruce Ashfield
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2024-05-28 19:14 UTC (permalink / raw)
To: mingli.yu; +Cc: meta-virtualization, patrick.wicki
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
on 15/05/2024 Yu, Mingli via lists.yoctoproject.org wrote:
> From: Mingli Yu <mingli.yu@windriver.com>
>
> 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>
> ---
> 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
> +
> --
> 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: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-28 19:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <17C92B9B397D8953.1247@lists.yoctoproject.org>
2024-05-15 2:54 ` [PATCH] netavark: Make ptest run mingli.yu
2024-05-28 19:14 ` [meta-virtualization] " Bruce Ashfield
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.