[RFC PATCH] selftests: fix build targets behaviour on failures