Unless told otherwise, the util-linux test suite assumes that it is
running in a build tree and looks for binaries to run.

In ptest we're on the target, so it needs to run the system binaries
instead.

This reduces ~180 skipped test cases down to tens, and should fix weird
behaviour. There are some new failures that were previously skipped
which will be investigated shortly.

Also pass --parsable to reduce the amount of noise in the log ouput.

[ YOCTO #14244 ]

Signed-off-by: Ross Burton <[email protected]>
---
 meta/recipes-core/util-linux/util-linux/run-ptest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/util-linux/util-linux/run-ptest 
b/meta/recipes-core/util-linux/util-linux/run-ptest
index e135ee583bd..86f9fef24bd 100644
--- a/meta/recipes-core/util-linux/util-linux/run-ptest
+++ b/meta/recipes-core/util-linux/util-linux/run-ptest
@@ -29,7 +29,7 @@ res=0
 count=0
 for ts in $comps; 
 do 
-   $ts | sed -u '{        
+   $ts --use-system-commands --parsable | sed -u '{
       s/^\(.*\):\(.*\) \.\.\. OK$/PASS: \1:\2/                              
       s/^\(.*\):\(.*\) \.\.\. FAILED \(.*\)$/FAIL: \1:\2 \3/                
       s/^\(.*\):\(.*\) \.\.\. SKIPPED \(.*\)$/SKIP: \1:\2 \3/               
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#153363): 
https://lists.openembedded.org/g/openembedded-core/message/153363
Mute This Topic: https://lists.openembedded.org/mt/83843964/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to