test: libtest: Return all non-zero init values
A skipped test is currently defined as returning 77. If this is returned by the init stage, currently the execute call will continue on to the run stage. Correct this such that any non-zero return code from the init phase will abort the test. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
e3bb826e66
commit
e3694a3ae8
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ int Test::execute()
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = init();
|
ret = init();
|
||||||
if (ret < 0)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
ret = run();
|
ret = run();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue