Merge lp:~canonical-platform-qa/ubuntu-system-tests/make-html5-tests-work-in-dev-env into lp:ubuntu-system-tests

Proposed by Sergio Cazzolato
Status: Work in progress
Proposed branch: lp:~canonical-platform-qa/ubuntu-system-tests/make-html5-tests-work-in-dev-env
Merge into: lp:ubuntu-system-tests
Diff against target: 19 lines (+6/-3)
1 file modified
ubuntu_sanity_tests/tests/test_html5_application.py (+6/-3)
To merge this branch: bzr merge lp:~canonical-platform-qa/ubuntu-system-tests/make-html5-tests-work-in-dev-env
Reviewer Review Type Date Requested Status
platform-qa-bot continuous-integration Needs Fixing
Federico Gimenez (community) Needs Fixing
PS Jenkins bot continuous-integration Needs Fixing
prod-platform-qa continuous-integration Pending
Sergio Cazzolato Pending
Review via email: mp+259969@code.launchpad.net

Commit message

Make html5 test case work when it is not being executed through adt

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Federico Gimenez (fgimenez) wrote :

Looks good, apart from the flake8 error and one inline comment

Thanks!

review: Needs Fixing
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Needs Fixing (continuous-integration)

Unmerged revisions

112. By Sergio Cazzolato

Make html5 test case work when it is not being executed through adt

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntu_sanity_tests/tests/test_html5_application.py'
2--- ubuntu_sanity_tests/tests/test_html5_application.py 2015-03-30 17:04:24 +0000
3+++ ubuntu_sanity_tests/tests/test_html5_application.py 2015-05-22 18:42:14 +0000
4@@ -120,9 +120,12 @@
5
6 :returns: a string containing the chromedriver executable path
7 """
8- base_deps_dir = os.path.join(
9- os.path.dirname(os.environ['ADT_ARTIFACTS']),
10- 'deps')
11+ base_deps_dir = ''
12+ adt_artifacts_dir = os.environ.get('ADT_ARTIFACTS', '')
13+ if adt_artifacts_dir:
14+ base_deps_dir = os.path.join(
15+ os.path.dirname(os.environ.get('ADT_ARTIFACTS','')),
16+ 'deps')
17
18 path_glob = '{base_dir}/usr/lib/*/oxide-qt/chromedriver'.format(
19 base_dir=base_deps_dir)

Subscribers

People subscribed via source and target branches

to all changes: