Skip to content

Add the '-e' / '--no-err-files' option.#11

Open
akopytov wants to merge 2 commits intoaiiie:mainfrom
akopytov:master
Open

Add the '-e' / '--no-err-files' option.#11
akopytov wants to merge 2 commits intoaiiie:mainfrom
akopytov:master

Conversation

@akopytov
Copy link

@akopytov akopytov commented Sep 10, 2016

In some cases TESTDIR is read-only, so storing an .err file on a test
failure is impossible which makes Cram itself fail.

For example, if Cram is invoked as a part of 'make distcheck', which
deliberately runs a VPATH build with 'srcdir' and all its contents made
read-only, any test failure leads to Cram failing with a Python
traceback in the test log. Having a diff file instead would still be
handy to diagnose the failure.

With the new '-e' / '--no-err-files' option Cram does not try to create
.err files on test failures, but still prints the diff.

In some cases TESTDIR is read-only, so storing an .err file on a test
failure is impossible which make cram itself fail.

For example, if Cram is invoked as a part of 'make distcheck', which
deliberately runs a VPATH build with 'srcdir' and all its contents made
read-only, any test failure leads to Cram failing with a Python
traceback in the test log. Having a diff file instead would still be
handy to diagnose the failure.

With the new '-e' / '--no-err-files' option Cram does not try to create
.err files on test failures, but still prints the diff.
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

Successfully merging this pull request may close these issues.

1 participant