Merge lp://qastaging/~sergiusens/snapcraft/clean into lp://qastaging/~snappy-dev/snapcraft/core

Proposed by Sergio Schvezov
Status: Merged
Approved by: John Lenton
Approved revision: 176
Merged at revision: 175
Proposed branch: lp://qastaging/~sergiusens/snapcraft/clean
Merge into: lp://qastaging/~snappy-dev/snapcraft/core
Diff against target: 242 lines (+158/-1)
7 files modified
integration-tests/units/jobs.pxu (+16/-0)
snapcraft/__init__.py (+1/-0)
snapcraft/cmds.py (+21/-0)
snapcraft/common.py (+4/-0)
snapcraft/main.py (+3/-0)
snapcraft/plugin.py (+2/-1)
snapcraft/tests/test_cmds.py (+111/-0)
To merge this branch: bzr merge lp://qastaging/~sergiusens/snapcraft/clean
Reviewer Review Type Date Requested Status
John Lenton (community) Approve
Review via email: mp+271487@code.qastaging.launchpad.net

Commit message

Add a clean command

To post a comment you must log in.
174. By Sergio Schvezov

Use %r for proper string quoting

Revision history for this message
Leo Arias (elopio) wrote :

This is good, and works.

From our discussion on IRC, I'd like to see one integration test calling clean. And delete the parts dir if all the parts were removed by clean.

<sergiusens> elopio, like for every test possible?
<elopio> sergiusens: no, just one execution of clean.
<sergiusens> elopio, as in, for every test run in there?
<sergiusens> elopio, ok, I don't mind that :-)
<elopio> sergiusens: the parts directory is not removed.
<elopio> is that on purpose?
<sergiusens> elopio, yes; inside parts you can also have local plugins
<sergiusens> elopio, it's sort of a safe haven for things
<elopio> sergiusens: what about removing it if it's empty?
<sergiusens> elopio, so instead of removing everything I thought it be safer this way
<sergiusens> elopio, yeah, that can be arranged
<elopio> just feels weird to leave behind only one empty dir.

175. By Sergio Schvezov

Remove parts if empty

176. By Sergio Schvezov

plainbox test for clean

Revision history for this message
John Lenton (chipaca) wrote :

Nice. Thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches