Skip to contentSkip to conversation

aardvark-dns: Improve the ptest output

PATCH In review [email protected] 2 participants 2 messages Jun 26, 2024 – Jul 10, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aardvark-dns: Improve the ptest output

From: Mingli Yu <[email protected]>

The previous ptest result show as ✓ or ✗ , improve the result to PASS or FAIL.

 # ./run-ptest
 [snip]
 PASS: 6 basic container - dns itself with long network name
 PASS: 7 two containers on the same network
 PASS: 8 two containers on different networks
 [snip]
---
 recipes-containers/aardvark-dns/files/run-ptest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-containers/aardvark-dns/files/run-ptest +1 -1
index b33d8fd4..d7abbb34 100644
@@ -1,3 +1,3 @@
 #!/bin/bash
 
-NETAVARK=/usr/libexec/podman/netavark AARDVARK=/usr/libexec/podman/aardvark-dns bats ./test/
+NETAVARK=/usr/libexec/podman/netavark AARDVARK=/usr/libexec/podman/aardvark-dns bats -t ./test/ | sed -e '/^ok/ s/^ok/PASS:/g' | sed -e '/^not ok/ s/^not ok/FAIL:/g'
Signature · 1 line
2.34.1
#1 lore raw

staged to master-next

Bruce

In message: [meta-virtualization] [PATCH] aardvark-dns: Improve the ptest output

Quoted 38 lines · Mingli via lists.yoctoproject.org

From: Mingli Yu <[email protected]>

The previous ptest result show as ✓ or ✗ , improve the result to PASS or FAIL.

 # ./run-ptest
 [snip]
 PASS: 6 basic container - dns itself with long network name
 PASS: 7 two containers on the same network
 PASS: 8 two containers on different networks
 [snip]
---
 recipes-containers/aardvark-dns/files/run-ptest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-containers/aardvark-dns/files/run-ptest +1 -1
index b33d8fd4..d7abbb34 100644
@@ -1,3 +1,3 @@
 #!/bin/bash
 
-NETAVARK=/usr/libexec/podman/netavark AARDVARK=/usr/libexec/podman/aardvark-dns bats ./test/
+NETAVARK=/usr/libexec/podman/netavark AARDVARK=/usr/libexec/podman/aardvark-dns bats -t ./test/ | sed -e '/^ok/ s/^ok/PASS:/g' | sed -e '/^not ok/ s/^not ok/FAIL:/g'
Signature · 11 lines
2.34.1



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