Bug 14217 - ptest-runner says child process returns 256 instead of 1
Summary: ptest-runner says child process returns 256 instead of 1
Status: RESOLVED FIXED
Alias: None
Product: Package Testing (ptest)
Classification: QA/Testing
Component: ptest (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 3.3 M3
Assignee: Aníbal Limón
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2021-02-03 19:30 UTC by Yi Fan Yu
Modified: 2021-04-07 14:20 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.