Merge lp:~canonical-platform-qa/snappy-ecosystem-tests/fix-snapd-login into lp:snappy-ecosystem-tests

Proposed by Omer Akram
Status: Merged
Approved by: Omer Akram
Approved revision: 38
Merged at revision: 36
Proposed branch: lp:~canonical-platform-qa/snappy-ecosystem-tests/fix-snapd-login
Merge into: lp:snappy-ecosystem-tests
Prerequisite: lp:~canonical-platform-qa/snappy-ecosystem-tests/flake8-fixes
Diff against target: 12 lines (+1/-1)
1 file modified
snappy_ecosystem_tests/helpers/snapd/snapd.py (+1/-1)
To merge this branch: bzr merge lp:~canonical-platform-qa/snappy-ecosystem-tests/fix-snapd-login
Reviewer Review Type Date Requested Status
Heber Parrucci (community) Approve
platform-qa-bot continuous-integration Approve
Review via email: mp+319355@code.launchpad.net

Commit message

fix snapd login.

Description of the change

fix snapd login. snapd login requires root access, since we are executing our commands over ssh as ubuntu user we need to run with `sudo`

To post a comment you must log in.
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Approve (continuous-integration)
38. By Omer Akram

sync pre-req

Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Heber Parrucci (heber013) wrote :

Comment inline

review: Needs Information
Revision history for this message
Omer Akram (om26er) wrote :

replied.

Revision history for this message
Omer Akram (om26er) :
Revision history for this message
Heber Parrucci (heber013) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'snappy_ecosystem_tests/helpers/snapd/snapd.py'
2--- snappy_ecosystem_tests/helpers/snapd/snapd.py 2017-03-07 13:53:31 +0000
3+++ snappy_ecosystem_tests/helpers/snapd/snapd.py 2017-03-08 18:03:01 +0000
4@@ -40,7 +40,7 @@
5 COMMAND_REMOVE = 'remove {snap}'
6 CHANNEL_STABLE = 'stable'
7 COMMANDS_LOGIN = """\
8-/usr/bin/expect \
9+sudo /usr/bin/expect \
10 -c 'spawn snap login {email}' \
11 -c 'expect \"Password*\"' \
12 -c 'send {password}\\r' \

Subscribers

People subscribed via source and target branches