Apply patch to simplify error detection for testing
Apply latest changes from https://git.lavasoftware.org/lava/lava/-/merge_requests/691#note_21520 for testing.
Apply latest changes from https://git.lavasoftware.org/lava/lava/-/merge_requests/691#note_21520 for testing.