integration tests rely on project_dir
Bug #1659356 reported by
Sergio Schvezov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Medium
|
Leo Arias |
Bug Description
When writing integration tests there is a common pattern repeated over and over:
- define project_dir
- run snapcraft in that project_dir (which copies project_dir, the dir, into curdir)
- construct paths using project_dir
Instead it would be better if
- explode project_dir in curdir
- run snapcraft
- use paths constructed form the base test class using os.getcwd, providing self.parts_dir, self.stage_dir, self.prime_dir, self.snap_dir, ...
Changed in snapcraft: | |
assignee: | nobody → Leo Arias (elopio) |
Changed in snapcraft: | |
status: | New → In Progress |
importance: | Undecided → Medium |
tags: | added: tests |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
milestone: | none → 2.27 |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
https:/ /github. com/snapcore/ snapcraft/ pull/1078