~abreu-alexandre/ubuntu-html5-theme/rtm-backport-html5-ui-fixes

« back to all changes in this revision

Viewing changes to tests/autopilot/ubuntu_html5_container/tests/__init__.py

  • Committer: Alexandre Abreu
  • Date: 2014-12-05 21:41:18 UTC
  • Revision ID: alexandre.abreu@canonical.com-20141205214118-3czfr3ijmzb43tda
Fix oxide support

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Copyright 2014 Canonical
3
3
#
4
4
# This program is free software: you can redistribute it and/or modify it
5
 
# under the terms of the GNU Lesser General Public License version 3, as published
6
 
# by the Free Software Foundation.
 
5
# under the terms of the GNU Lesser General Public License version 3, as
 
6
# published by the Free Software Foundation.
7
7
 
8
8
"""Tests for the Ubuntu HTML5 Launcher package """
9
9
 
10
10
import os
11
11
from autopilot.testcase import AutopilotTestCase
12
12
 
 
13
 
13
14
LAUNCHER_EXEC_NAME = 'ubuntu-html5-app-launcher'
14
15
 
15
 
LOCAL_LAUNCHER_PATH = os.path.abspath("%s/%s" % (os.path.dirname(os.path.realpath(__file__))
16
 
                                        , '../../../../src/ubuntu-html5-app-launcher/' + LAUNCHER_EXEC_NAME))
 
16
LOCAL_LAUNCHER_PATH = os.path.abspath(
 
17
    "{}/{}".format(
 
18
        os.path.dirname(os.path.realpath(__file__)),
 
19
        '../../../../src/ubuntu-html5-app-launcher/' + LAUNCHER_EXEC_NAME))
 
20
 
17
21
INSTALLED_LAUNCHER_PATH = '/usr/bin/' + LAUNCHER_EXEC_NAME
18
22
 
19
23
 
35
39
 
36
40
    def launch_with_argument(self, args):
37
41
        try:
38
 
            self.app = self.launch_test_application(self.get_launcher_path(), args)
39
 
        except Exception, e:
 
42
            self.app = self.launch_test_application(
 
43
                self.get_launcher_path(),
 
44
                args)
 
45
        except Exception:
40
46
            pass
41