Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show contents of test-suite.log if there is an error #26

Closed
tyll opened this issue Nov 15, 2015 · 4 comments
Closed

Show contents of test-suite.log if there is an error #26

tyll opened this issue Nov 15, 2015 · 4 comments

Comments

@tyll
Copy link
Contributor

tyll commented Nov 15, 2015

If "make check" errors, it only shows that errors might be in the log file instead of just showing the log file. This makes it harder to get the actual error message if a build system is used that does not allow to get the log file directly, e.g. on Fedora. Therefore please consider just showing the error directly.

@mpartel
Copy link
Owner

mpartel commented Nov 15, 2015

Yeah, some new version of autoconf/automake changed it to be this way and I haven't found a clean way to change it back. I find it a bit annoying as well.

Would it be reasonable to work around this by configuring your build system to do something like this?

/bin/sh -c 'if make check; then true; else cat tests/test-suite.log; exit 1; fi'
/bin/sh -c 'if sudo make check; then true; else cat tests/test-suite.log; exit 1; fi'

@tyll
Copy link
Contributor Author

tyll commented Nov 15, 2015

If it is not easily possible, the workaround is fine by me. I already used it to figure out test failures (it was just because of missing dependencies). Btw. testing as root is not possible in Fedora's build environment.

@mpartel
Copy link
Owner

mpartel commented Nov 15, 2015

Ok, it was fairly easy after all, I just messed up the syntax on my first try.

@tyll
Copy link
Contributor Author

tyll commented Nov 15, 2015

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants