Merge lp:~cprov/britney/boottest-support-test-fix into lp:~canonical-ci-engineering/britney/boottesting-support

Proposed by Celso Providelo
Status: Merged
Merged at revision: 455
Proposed branch: lp:~cprov/britney/boottest-support-test-fix
Merge into: lp:~canonical-ci-engineering/britney/boottesting-support
Diff against target: 20 lines (+3/-3)
1 file modified
tests/test_boottest.py (+3/-3)
To merge this branch: bzr merge lp:~cprov/britney/boottest-support-test-fix
Reviewer Review Type Date Requested Status
Vincent Ladeuil (community) Approve
Canonical CI Engineering Pending
Review via email: mp+248751@code.launchpad.net

Description of the change

Test fix proposal.

To post a comment you must log in.
456. By Celso Providelo

solve '~' expansion for tests.

Revision history for this message
Vincent Ladeuil (vila) wrote :

Push !

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/test_boottest.py'
2--- tests/test_boottest.py 2015-02-05 09:42:12 +0000
3+++ tests/test_boottest.py 2015-02-05 13:15:29 +0000
4@@ -156,13 +156,13 @@
5 """Create a manifest for this britney run context."""
6 path = os.path.join(
7 self.data.path,
8- 'boottest/images/ubuntu/{}'.format(self.data.series))
9+ 'boottest/images/ubuntu-touch/{}'.format(self.data.series))
10 create_manifest(path, lines)
11
12 def make_boottest(self):
13 """Create a stub version of boottest-britney script."""
14- script_path = os.path.join(
15- self.data.path, 'boottest/jenkins/boottest-britney')
16+ script_path = os.path.expanduser(
17+ "~/auto-package-testing/jenkins/boottest-britney")
18 os.makedirs(os.path.dirname(script_path))
19 with open(script_path, 'w') as f:
20 f.write('''#!%(py)s

Subscribers

People subscribed via source and target branches