test suite depends on files in user's $HOME

Bug #920330 reported by Jonathan Nieder
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dulwich
Fix Released
High
Jelmer Vernooij

Bug Description

Trying to build Dulwich 0.8.3, I get three test suite failures: test_default_backends (dulwich.tests.test_config.StackedConfigTests), test_commit_config_identity (dulwich.tests.test_repository.BuildRepoTests), test_get_config_stack (dulwich.tests.test_repository.RepositoryTests). In all three cases, the cause is the same:

  File "dulwich/config.py", line 206, in from_file
    raise ValueError("expected trailing ]")

which presumably means that dulwich.config is having trouble parsing my ~/.gitconfig. Fine, that's already pretty much covered by bug 768687.

This report is about a side-issue: whether dulwich passes tests depends on the content of the invoker's home directory. On one hand we can catch more bugs this way, but on the other hand such lack of reproducibility can make debugging unpleasant. Would it make sense to set HOME to point to a temporary directory populated by the test suite?

Tags: config
Revision history for this message
Jonathan Nieder (jrnieder) wrote :
Jelmer Vernooij (jelmer)
Changed in dulwich:
status: New → Triaged
importance: Undecided → High
Jelmer Vernooij (jelmer)
tags: added: config
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This should now be fixed in trunk. Thanks for the bugreport!

Changed in dulwich:
status: Triaged → Fix Committed
assignee: nobody → Jelmer Vernooij (jelmer)
Revision history for this message
Jonathan Nieder (jrnieder) wrote : Re: [Bug 920330] Re: test suite depends on files in user's $HOME

Jelmer Vernooij wrote:

> This should now be fixed in trunk.

Confirmed. Thanks, that was quick. ;-)

Jelmer Vernooij (jelmer)
Changed in dulwich:
milestone: none → 0.8.4
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.