Skip to contentSkip to conversation

util-linux: use the system binaries when running ptest

PATCH In review Ross Burton 3 participants 5 messages Jun 28, 2021 – Jun 29, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 util-linux: use the system binaries when running ptest

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 ]

---
 meta/recipes-core/util-linux/util-linux/run-ptest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/util-linux/util-linux/run-ptest +1 -1
index e135ee583bd..86f9fef24bd 100644
@@ -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/               
Signature · 1 line
2.25.1
#1 lore raw
Quoted 29 lines · Ross Burton

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 ]

---
 meta/recipes-core/util-linux/util-linux/run-ptest | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/util-linux/util-linux/run-ptest +0 -0
index e135ee583bd..86f9fef24bd 100644
@@ -29,7 +29,7 @@ res=0

 count=0
 for ts in $comps;
 do

meta/recipes-core/util-linux/util-linux/run-ptest +1 -1
-   $ts | sed -u '{        
+   $ts --use-system-commands --parsable | sed -u '{
Quoted 3 lines

       s/^\(.*\):\(.*\) \.\.\. OK$/PASS: \1:\2/ s/^\(.*\):\(.*\) \.\.\. FAILED \(.*\)$/FAIL: \1:\2 \3/ s/^\(.*\):\(.*\) \.\.\. SKIPPED \(.*\)$/SKIP: \1:\2 \3/

This is a good fix, thanks. Makes me worry about regression identification. FWIW testing showed this on x86 (arm still going):

https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2227

Looks like a build from Alex did have results for arm:
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1942/steps/12/logs/stdio

Cheers,

Richard

#2 lore raw
Quoted 37 lines · Richard Purdie
Quoted 29 lines · Ross Burton

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 ]

---
 meta/recipes-core/util-linux/util-linux/run-ptest | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/util-linux/util-linux/run-ptest +0 -0
index e135ee583bd..86f9fef24bd 100644
@@ -29,7 +29,7 @@ res=0

 count=0
 for ts in $comps;
 do

meta/recipes-core/util-linux/util-linux/run-ptest +1 -1
-   $ts | sed -u '{        
+   $ts --use-system-commands --parsable | sed -u '{
Quoted 3 lines

       s/^\(.*\):\(.*\) \.\.\. OK$/PASS: \1:\2/ s/^\(.*\):\(.*\) \.\.\. FAILED \(.*\)$/FAIL: \1:\2 \3/ s/^\(.*\):\(.*\) \.\.\. SKIPPED \(.*\)$/SKIP: \1:\2 \3/

This is a good fix, thanks. Makes me worry about regression identification. FWIW testing showed this on x86 (arm still going):

Quoted 2 lines

https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2227

Indeed, this one has the same issue:
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2228/steps/12/logs/stdio

Quoted 3 lines

Looks like a build from Alex did have results for arm:
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1942/steps/12/logs/stdio

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw
In reply to Richard Purdie

Will this be blocked on fixing those?

Ross

Quoted 50 lines · Richard Purdie
Quoted 24 lines · Ross Burton

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 ]

---
 meta/recipes-core/util-linux/util-linux/run-ptest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/util-linux/util-linux/run-ptest +0 -0
index e135ee583bd..86f9fef24bd 100644

meta/recipes-core/util-linux/util-linux/run-ptest res=0 · line 35

Quoted 8 lines
meta/recipes-core/util-linux/util-linux/run-ptest +1 -1
@@ -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/

This is a good fix, thanks. Makes me worry about regression identification. FWIW testing showed this on x86 (arm still going):

https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2227

Looks like a build from Alex did have results for arm:
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1942/steps/12/logs/stdio

Cheers,

Richard

#4 lore raw
Quoted 1 line · Ross Burton

Will this be blocked on fixing those?

It means every ptest build would have to be triaged, so yes, it does really block on that unfortunately :(

Cheers,

Richard