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

Tests fail if user running the tests doesn't have ~/.gitconfig #432

Closed
rikur opened this issue Nov 13, 2014 · 4 comments
Closed

Tests fail if user running the tests doesn't have ~/.gitconfig #432

rikur opened this issue Nov 13, 2014 · 4 comments

Comments

@rikur
Copy link

rikur commented Nov 13, 2014

Finished tests in 21.399766s, 21.2619 tests/s, 77.6644 assertions/s.

  1. Failure:
    test_read_global_config_file(ConfigTest) [/home/riku.r/rugged/test/config_test.rb:19]:
    Failed assertion, no message given.

455 tests, 1662 assertions, 1 failures, 0 errors, 0 skips

Tests will pass after running:
git config --global user.name 'Foo Bar'

@dvzrv
Copy link

dvzrv commented Jun 9, 2019

I'm encountering the exact same issue during build and test of ruby-rugged for Arch Linux.

It's sort of interesting this bug never got fixed.

@kbrock
Copy link

kbrock commented Jul 28, 2021

I'm running into issues when running this as part of a daemon process that does not have access to the HOME directory

@carlosmn
Copy link
Member

It's a bit of an edge condition since most places will just have it. I started trying to isolate the tests yesterday but spent most of the evening just trying to figure out how to get minitest to do what I wanted.

@kbrock if you're running a daemon then it's a different issue and you should specify a different search path for the config levels if you cannot use the defaults.

@carlosmn
Copy link
Member

carlosmn commented Aug 6, 2021

Fixed via #883

@carlosmn carlosmn closed this as completed Aug 6, 2021
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

4 participants