Merge lp:~cjohnston/uci-engine/no-sshuttle into lp:uci-engine

Proposed by Chris Johnston
Status: Rejected
Rejected by: Celso Providelo
Proposed branch: lp:~cjohnston/uci-engine/no-sshuttle
Merge into: lp:uci-engine
Diff against target: 19 lines (+5/-4)
1 file modified
tests/run.py (+5/-4)
To merge this branch: bzr merge lp:~cjohnston/uci-engine/no-sshuttle
Reviewer Review Type Date Requested Status
Vincent Ladeuil (community) Needs Fixing
PS Jenkins bot (community) continuous-integration Needs Fixing
Evan (community) Needs Fixing
Review via email: mp+222961@code.launchpad.net

Commit message

Add flag for using sshuttle in tests/run.py

Description of the change

Since we do the amulet testing in HP by default, we don't need sshuttle, and sshuttle can be a pain, so lets disable it by default.

To post a comment you must log in.
Revision history for this message
Evan (ev) wrote :

Given that this check is just helpful for people who don't know to set up sshuttle first on Canonistack, it seems more logical to remove it entirely instead of hiding it behind and environment variable that will never be set.

I realise you're after something that's as non-controversial as possible, but I suspect it may be unnecessary.

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:571
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/843/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/843/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Vincent Ladeuil (vila) wrote :

I'd turn that into documentation in TRICKS and get rid of the code *and* SUDOERS, SUDOERS_FILE. Given the state of canonistack, it's unlikely people will deploy there anyway.

review: Needs Fixing
Revision history for this message
Evan (ev) wrote :

One way of preserving it: http://paste.ubuntu.com/7634258/

Unmerged revisions

571. By Chris Johnston

Add flag for using sshuttle in tests/run.py

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/run.py'
2--- tests/run.py 2014-06-10 10:23:19 +0000
3+++ tests/run.py 2014-06-12 15:19:25 +0000
4@@ -234,10 +234,11 @@
5 log.error(msg)
6 sys.exit(1)
7
8- if not check_sudoers():
9- msg = 'Please run:\necho "$USER %s" > %s' % (SUDOERS, SUDOERS_FILE)
10- log.error(msg)
11- sys.exit(1)
12+ if os.environ.get('SSHUTTLE'):
13+ if not check_sudoers():
14+ msg = 'Please run:\necho "$USER %s" > %s' % (SUDOERS, SUDOERS_FILE)
15+ log.error(msg)
16+ sys.exit(1)
17
18 branches = os.path.join(HERE, '..', 'branches')
19 deploy.build_sourcedeps(branches)

Subscribers

People subscribed via source and target branches