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

Proposed by Sergio Schvezov
Status: Merged
Approved by: Sergio Schvezov
Approved revision: 238
Merged at revision: 239
Proposed branch: lp://qastaging/~sergiusens/snapcraft/1506096
Merge into: lp://qastaging/~snappy-dev/snapcraft/core
Diff against target: 91 lines (+19/-12)
3 files modified
setup.py (+1/-6)
snapcraft/sources.py (+14/-4)
snapcraft/tests/test_sources.py (+4/-2)
To merge this branch: bzr merge lp://qastaging/~sergiusens/snapcraft/1506096
Reviewer Review Type Date Requested Status
Federico Gimenez (community) Approve
John Lenton (community) Approve
Review via email: mp+274418@code.qastaging.launchpad.net

Commit message

Run unit tests when building the deb and make a failing test work

Description of the change

The things you do for love^wtests.

It seems that when running inside a package build proxies are defaulted to. I also took the opportunity to get rid of using wget and just stick with requests.

Using requests does have the drawback of not being able to continue a download (in this implementation at least), but forcing pull again will do the right thing, so take it as you wish.

I will be working during 0.4 to get rid of all the return True/False they are driving me nuts!

To post a comment you must log in.
Revision history for this message
John Lenton (chipaca) wrote :

lgtm!

review: Approve
Revision history for this message
Federico Gimenez (fgimenez) wrote :

The tests are being triggered on build but I'm getting this error [1], should all of them pass?

Thanks!

[1] http://paste.ubuntu.com/12782116/

review: Needs Information
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

> The tests are being triggered on build but I'm getting this error [1], should
> all of them pass?
>
> Thanks!
>
> [1] http://paste.ubuntu.com/12782116/

Oh lol, that is the issue I fixed. It is the same error we would of seen on autopkg tests. It should pass. How are you building?

Revision history for this message
Federico Gimenez (fgimenez) wrote :

@Sergio bzr bd and dpkg-buildpackage both give the same error

238. By Sergio Schvezov

Run unit tests when building the deb and make a failing test work

Revision history for this message
Federico Gimenez (fgimenez) wrote :

LGTM thx!

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