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:
Kieran Bingham 2018-12-20 19:43:48 +00:00 committed by Laurent Pinchart
parent e3bb826e66
commit e3694a3ae8

View file

@ -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();