Merge lp:~thomir-deactivatedaccount/autopilot/split-vis into lp:autopilot

Proposed by Thomi Richards
Status: Merged
Approved by: Mathieu Trudel-Lapierre
Approved revision: 182
Merged at revision: 179
Proposed branch: lp:~thomir-deactivatedaccount/autopilot/split-vis
Merge into: lp:autopilot
Diff against target: 94 lines (+31/-8)
4 files modified
bin/autopilot (+17/-7)
debian/control (+13/-0)
debian/python-autopilot-vis.pyinstall (+1/-0)
debian/python-autopilot.pyinstall (+0/-1)
To merge this branch: bzr merge lp:~thomir-deactivatedaccount/autopilot/split-vis
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+161660@code.launchpad.net

Commit message

Split vis tool.

Description of the change

Split the autopilot vis tool into a separate package.

To post a comment you must log in.
Revision history for this message
Michael Terry (mterry) wrote :

Seems reasonable, but why the 3.0 (quilt) change? Our daily release process likes packages to be in format 1.0.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
182. By Thomi Richards

Roll back change to debian/source/format.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Approve.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/autopilot'
2--- bin/autopilot 2013-04-25 22:53:20 +0000
3+++ bin/autopilot 2013-04-30 18:26:25 +0000
4@@ -132,12 +132,13 @@
5 parser_list.add_argument("suite", nargs="+",
6 help="Specify test suite(s) to run.")
7
8- parser_vis = subparsers.add_parser('vis',
9- help="Open the Autopilot visualiser tool")
10- parser_vis.add_argument('-v', '--verbose', required=False, default=False,
11- action='count', help="Show autopilot log messages. \
12- Set twice to also log data useful for debugging \
13- autopilot itself.")
14+ if have_vis():
15+ parser_vis = subparsers.add_parser('vis',
16+ help="Open the Autopilot visualiser tool")
17+ parser_vis.add_argument('-v', '--verbose', required=False, default=False,
18+ action='count', help="Show autopilot log messages. \
19+ Set twice to also log data useful for debugging \
20+ autopilot itself.")
21
22 parser_launch = subparsers.add_parser('launch',
23 help="Launch an application with introspection enabled")
24@@ -291,7 +292,6 @@
25
26 def load_test_suite_from_name(test_names):
27 """Returns a test suite object given a dotted test names."""
28- patch_python_path()
29 loader = TestLoader()
30 if isinstance(test_names, basestring):
31 test_names = list(test_names)
32@@ -385,6 +385,15 @@
33 exit(1)
34
35
36+def have_vis():
37+ """Return true if the vis package is installed."""
38+ try:
39+ from autopilot.vis import vis_main
40+ return True
41+ except ImportError:
42+ return False
43+
44+
45 def run_vis(args):
46 setup_logging(args.verbose)
47 # importing this requires that DISPLAY is set. Since we don't always want
48@@ -415,6 +424,7 @@
49
50
51 if __name__ == "__main__":
52+ patch_python_path()
53 if not check_depends():
54 exit(1)
55 main()
56
57=== modified file 'debian/control'
58--- debian/control 2013-04-23 03:15:28 +0000
59+++ debian/control 2013-04-30 18:26:25 +0000
60@@ -46,6 +46,19 @@
61 keyboard. It also provides a lot of utilities linked to the X server
62 and detecting applications.
63
64+Package: python-autopilot-vis
65+Architecture: all
66+Depends: ${misc:Depends},
67+ ${python:Depends},
68+ python-autopilot,
69+ python-dbus,
70+ python-qt4,
71+ python-qt4-dbus,
72+Description: The visualisation application for Autopilot.
73+ The Autopilot vis tool allows you to inspect an application introspectioin
74+ tree. It is a useful tool for test authors, but not required to run autopilot
75+ tests.
76+
77 Package: python-autopilot-tests
78 Architecture: all
79 Depends: ${shlibs:Depends},
80
81=== added file 'debian/python-autopilot-vis.pyinstall'
82--- debian/python-autopilot-vis.pyinstall 1970-01-01 00:00:00 +0000
83+++ debian/python-autopilot-vis.pyinstall 2013-04-30 18:26:25 +0000
84@@ -0,0 +1,1 @@
85+autopilot/vis/*.py
86
87=== modified file 'debian/python-autopilot.pyinstall'
88--- debian/python-autopilot.pyinstall 2013-04-17 21:38:27 +0000
89+++ debian/python-autopilot.pyinstall 2013-04-30 18:26:25 +0000
90@@ -4,4 +4,3 @@
91 autopilot/introspection/*.py
92 autopilot/matchers/*.py
93 autopilot/process/*.py
94-autopilot/vis/*.py

Subscribers

People subscribed via source and target branches