Bug 14217

Summary: ptest-runner says child process returns 256 instead of 1
Product: [QA/Testing] Package Testing (ptest) Reporter: Yi Fan Yu <yf3yu>
Component: ptestAssignee: Aníbal Limón <anibal>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: anibal, randy.macleod
Version: unspecified   
Target Milestone: 3.3 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Yi Fan Yu 2021-02-03 19:30:19 UTC
minor issue
writing a run-ptest script in shell to exit 1, 


but the ptest-runner will say 
`ERROR: Exit status is 256`

this might help:

https://stackoverflow.com/questions/3659616/why-does-wait-set-status-to-256-instead-of-the-1-exit-status-of-the-forked-pr
Comment 1 Randy MacLeod 2021-02-04 15:57:35 UTC
Richard thinks there's a missing macro/mask in the ptest code.
Comment 2 Aníbal Limón 2021-03-22 23:14:24 UTC
(In reply to comment #1)
> Richard thinks there's a missing macro/mask in the ptest code.

Indeed, I have a patch for this one, I'm working on #14220 to send together.

https://github.com/alimon/ptest-runner2/commit/3f68279340398b07cbb23d570782e82811d5ce26
Comment 3 Aníbal Limón 2021-03-23 02:18:20 UTC
Patches sent to ML and dev branch,

https://github.com/alimon/ptest-runner2/tree/ptest_fixes
Comment 4 Aníbal Limón 2021-04-01 14:45:12 UTC
Patch in ptest-runner,

http://git.yoctoproject.org/cgit/cgit.cgi/ptest-runner2/commit/?id=cb2840a659154651334be7e1be6233df724f2832

Recipe bump to 2.4.1 in the ML.