Skip to content
This repository was archived by the owner on Aug 4, 2022. It is now read-only.

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant