integration tests rely on project_dir

Bug #1659356 reported by Sergio Schvezov
6
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, ...

Tags: tests
Changed in snapcraft:
assignee: nobody → Leo Arias (elopio)
Leo Arias (elopio)
Changed in snapcraft:
status: New → In Progress
importance: Undecided → Medium
tags: added: tests
Revision history for this message
Leo Arias (elopio) wrote :
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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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