Merge lp:~fgimenez/snappy/udf-revision into lp:~snappy-dev/snappy/snappy-moved-to-github

Proposed by Federico Gimenez
Status: Merged
Approved by: Leo Arias
Approved revision: 691
Merged at revision: 709
Proposed branch: lp:~fgimenez/snappy/udf-revision
Merge into: lp:~snappy-dev/snappy/snappy-moved-to-github
Diff against target: 12 lines (+1/-1)
1 file modified
_integration-tests/testutils/image/image.go (+1/-1)
To merge this branch: bzr merge lp:~fgimenez/snappy/udf-revision
Reviewer Review Type Date Requested Status
Leo Arias (community) Approve
Review via email: mp+271081@code.launchpad.net

Commit message

New format for passing the revision parameter in udf

Description of the change

New format for passing the revision parameter in udf

To post a comment you must log in.
Revision history for this message
Leo Arias (elopio) wrote :

why is this needed? I'm testing it with the latest udf and it works without the =.
I'm not opposed to this, it looks fine. just wondering if it's a pure cosmetic thing.

review: Needs Fixing
Revision history for this message
Leo Arias (elopio) :
review: Needs Information
Revision history for this message
Federico Gimenez (fgimenez) wrote :

I'm getting this error when a revision flag is given:

$ go run _integration-tests/main.go -revision=-1
Building tests...
go test -c ./_integration-tests/tests
Writing test config...
{_integration-tests/data/output/testconfig.json rolling edge false false false}
Creating image...
sudo ubuntu-device-flash --verbose --revision -1 core rolling --output /tmp/snappy-test/image/snappy-rolling-edge--1.img --channel edge --developer-mode
expected argument for flag `--revision', but got option `-1'

Never used this revision flag before :) it'll be useful for sure for automated upgrade tests

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

Right, I didn't try with -#, just with #.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '_integration-tests/testutils/image/image.go'
2--- _integration-tests/testutils/image/image.go 2015-07-28 04:03:52 +0000
3+++ _integration-tests/testutils/image/image.go 2015-09-15 09:33:35 +0000
4@@ -51,7 +51,7 @@
5 udfCommand := []string{"sudo", "ubuntu-device-flash", "--verbose"}
6
7 if img.revision != "" {
8- udfCommand = append(udfCommand, "--revision", img.revision)
9+ udfCommand = append(udfCommand, "--revision="+img.revision)
10 }
11
12 imagePath := img.imagePath(imageDir)

Subscribers

People subscribed via source and target branches