Merge lp://qastaging/~elopio/snapcraft/test_tmp_cwd into lp://qastaging/~snappy-dev/snapcraft/core
Proposed by
Leo Arias
Status: | Merged |
---|---|
Merged at revision: | 100 |
Proposed branch: | lp://qastaging/~elopio/snapcraft/test_tmp_cwd |
Merge into: | lp://qastaging/~snappy-dev/snapcraft/core |
Diff against target: |
69 lines (+37/-4) 3 files modified
debian/control (+1/-0) snapcraft/tests/__init__.py (+7/-4) snapcraft/tests/fixture_setup.py (+29/-0) |
To merge this branch: | bzr merge lp://qastaging/~elopio/snapcraft/test_tmp_cwd |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Terry (community) | Approve | ||
Review via email: mp+265352@code.qastaging.launchpad.net |
Commit message
Use a temporary cwd during the tests.
Added python3-fixtures as a build dependency.
Description of the change
There are some tests that generate directories.
If they are run in the branch directory, then it will be polluted.
By changing to a tmp dir, every test can generate whatever it wants and then it will be cleaned up.
To post a comment you must log in.
Sure, looks good. mvo's copy-plugin branch [1] did something similar, but it was opt-in instead of automatic. This is more fool-proof.
[1] https:/ /code.launchpad .net/~mvo/ snapcraft/ copy-plugin/ +merge/ 264706