[build][tests] Check if test on qemu exited with 0