#26984 closed defect (fixed)

Tests should not fail due to a missing .gitignore

Reported by: irl Owned by: atagar
Priority: Medium Milestone:
Component: Core Tor/Stem Version:
Severity: Normal Keywords: debian, packaging
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


It is very common that VCS-specific files are thrown away when packaging for distributions as distributions may not use the same VCS as you.

The Debian package does not run any tests when building, and while I'm only guessing, this is probably due to the requirement that the original .gitignore is kept around.

Traceback (most recent call last):
  File "run_tests.py", line 36, in <module>
    import test
  File "/home/irl/debian/python-stem/test/__init__.py", line 71, in <module>
    with open(os.path.join(STEM_BASE, '.gitignore')) as ignore_file:
FileNotFoundError: [Errno 2] No such file or directory: '/home/irl/debian/python-stem/.gitignore'

Child Tickets

Change History (1)

comment:1 Changed 11 months ago by atagar

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.