tests: Fix collecting errors in test_compilation_and_rsync

This test was suffering an issue with errors generated in subshells. In the
previous commit this kind of problems were fixed. This commits modifies this test
to rely on the mechanism of error propagation fom subshells and also adds some
useful error messages in case of a failure.