stress-ng should better handle unknown options
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Base |
Fix Released
|
Undecided
|
Sylvain Pineau |
Bug Description
unning stress-ng sync-file stressor for 240 seconds....
stress-ng: unrecognized option '--sync-file'
Try 'stress-ng --help' for more information.
return_code is 1
*******
** Error 1 reported on stressor sync-file!)
*******
stress-ng returns output like above when a test case doesn't exist. This could happen where that feature works on one arch, but is not supported on another (e.g. x86_64 vs ppc64el)
So disk_stress_ng should do one of the following:
Maintain separate arch specific test lists and become arch aware to dynamically create test lists at runtime.
OR
Intercept these cases, pass a warning message to logs/output, and pass on these tests.
Changed in plainbox-provider-checkbox: | |
status: | New → In Progress |
assignee: | nobody → Colin Ian King (colin-king) |
Changed in plainbox-provider-checkbox: | |
milestone: | none → 0.34.0 |
Changed in plainbox-provider-checkbox: | |
status: | Fix Committed → Fix Released |
I will look at adding a warning and a return code 4 (EXIT_NOT_ IMPLEMENTED) to cater for this. I may take me a while to implement because it requires a re-working of most of the 160 or so tests.
How about a pr_info message "<stressor-name>: this stressor is not implemented on this system: <arch> <kernel-release>", e.g.
stress-sync-file: this stressor is not implemented on this system: ppc64el 4.8.0-26-generic