Merge lp:~jtv/maas-test/housekeeping into lp:maas-test

Proposed by Jeroen T. Vermeulen
Status: Merged
Approved by: Jeroen T. Vermeulen
Approved revision: 104
Merged at revision: 101
Proposed branch: lp:~jtv/maas-test/housekeeping
Merge into: lp:maas-test
Diff against target: 134 lines (+34/-14)
3 files modified
docs/man/maas-test.8.rst (+8/-11)
maastest/report.py (+3/-1)
man/maas-test.8 (+23/-2)
To merge this branch: bzr merge lp:~jtv/maas-test/housekeeping
Reviewer Review Type Date Requested Status
Julian Edwards (community) Approve
Review via email: mp+200776@code.launchpad.net

Commit message

Fix lint, update manpage.

Description of the change

Fixes several problems at once. Our generated manpage was out of date; we had lint in the code so a plain “make” or “make lint” would break; and due perhaps to some change in tooling the manpage no longer compiled from RST. The RST source for the manpage also had an extraneous heading accidentally inserted in it.

I didn't want to spend the time re-tweaking the levels of the section headings, which have to work right in both the man page and the HTML output; the change doesn't look too bad to me.

We have more problems: “make test” no longer works for me in a clean copy of trunk. But let's not get too much into one branch — this brings us some fixes now, and at least a plain “make” works again.

Jeroen

To post a comment you must log in.
Revision history for this message
Julian Edwards (julian-edwards) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

 review: approve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlLNAgwACgkQWhGlTF8G/Hc9kACeOoMi/tGmrUdW58/sK7VngAPn
lr0AnjvHXP0ovMg6XVk07Iay5RTfX/bd
=h5wc
-----END PGP SIGNATURE-----

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'docs/man/maas-test.8.rst'
2--- docs/man/maas-test.8.rst 2014-01-06 07:45:11 +0000
3+++ docs/man/maas-test.8.rst 2014-01-08 07:40:55 +0000
4@@ -1,8 +1,4 @@
5 =========
6-
7-Test results
8-============
9-
10 maas-test
11 =========
12
13@@ -63,7 +59,7 @@
14
15
16 Preparing to run
17-----------------
18+================
19
20 The test will run MAAS in a virtual machine. It will not be installed on your
21 physical system. Nevertheless there are a few things you need to be aware of:
22@@ -90,7 +86,7 @@
23
24
25 Running
26--------
27+=======
28
29 There is one required argument: the network interface which connects the
30 testing system to the testing network, e.g. `eth1`.
31@@ -107,10 +103,10 @@
32 ============
33
34 Once maas-test has finished testing the node it will upload the test
35-results to Launchpad (unless told otherwise; see
36-:ref:`reporting-options`). This allows you to share the test results
37-with others, including the MAAS developers, by filing a Launchpad bug
38-which includes the test results as an attachment.
39+results to Launchpad (unless told otherwise; see the `reporting options`_).
40+This allows you to share the test results with others, including the MAAS
41+developers, by filing a Launchpad bug which includes the test results as an
42+attachment.
43
44 By defaults the results will also be written to timestamped log files
45 under `~/.maas-test/logs`.
46@@ -194,7 +190,8 @@
47 The proxy software used is `polipo`. The cache will be stored under
48 `~/.maas-test`.
49
50-.. _reporting-options
51+.. _`reporting options`:
52+
53 --no-reporting
54 Turn off all reporting of test results. Results will be written to
55 stdout but not recorded elsewhere.
56
57=== modified file 'maastest/report.py'
58--- maastest/report.py 2014-01-06 07:45:52 +0000
59+++ maastest/report.py 2014-01-08 07:40:55 +0000
60@@ -30,6 +30,7 @@
61 from apiclient import multipart
62 from xdg import BaseDirectory
63
64+
65 # This is largely cargo-culted from apiclient.multipart because
66 # Launchpad only pays attention to the first Content-Disposition header
67 # on an attachment, and if we want the content to actually be attached
68@@ -141,7 +142,8 @@
69 """Handle the reporting of maas-test results.
70
71 :param results: The results to report.
72- :param log_only: If True, write the results to a file but don't submit them to Launchpad.
73+ :param log_only: If True, write the results to a file but don't submit
74+ them to Launchpad.
75 :param now: The current date/time (used for testing only).
76 :type now: datetime.datetime.
77 """
78
79=== modified file 'man/maas-test.8'
80--- man/maas-test.8 2013-12-10 13:56:55 +0000
81+++ man/maas-test.8 2014-01-08 07:40:55 +0000
82@@ -73,7 +73,7 @@
83 .sp
84 In addition to being on the testing network, the testing system must also have
85 internet access.
86-.SS Preparing to run
87+.SH PREPARING TO RUN
88 .sp
89 The test will run MAAS in a virtual machine. It will not be installed on your
90 physical system. Nevertheless there are a few things you need to be aware of:
91@@ -99,7 +99,7 @@
92 for the virtual machine, and for booting the node. As a rule of thumb, count
93 on half a gigabyte as a baseline, plus a quarter gigabyte for each combination
94 of architecture and Ubuntu release that will run on the node.
95-.SS Running
96+.SH RUNNING
97 .sp
98 There is one required argument: the network interface which connects the
99 testing system to the testing network, e.g. \fIeth1\fP\&.
100@@ -113,6 +113,16 @@
101 Manually when running in \fIinteractive mode\fP\&. The test will stop and ask you
102 to power up the node.
103 .UNINDENT
104+.SH TEST RESULTS
105+.sp
106+Once maas\-test has finished testing the node it will upload the test
107+results to Launchpad (unless told otherwise; see the \fI\%reporting options\fP).
108+This allows you to share the test results with others, including the MAAS
109+developers, by filing a Launchpad bug which includes the test results as an
110+attachment.
111+.sp
112+By defaults the results will also be written to timestamped log files
113+under \fI~/.maas\-test/logs\fP\&.
114 .SH OPTIONS
115 .INDENT 0.0
116 .TP
117@@ -191,6 +201,17 @@
118 The proxy software used is \fIpolipo\fP\&. The cache will be stored under
119 \fI~/.maas\-test\fP\&.
120 .UNINDENT
121+.INDENT 0.0
122+.TP
123+.B \-\-no\-reporting
124+Turn off all reporting of test results. Results will be written to
125+stdout but not recorded elsewhere.
126+.TP
127+.B \-\-log\-results\-only
128+Write test results to a file, but don\(aqt upload them to Launchpad.
129+Results will be written to a timestamped log file under
130+~/.maas\-test/logs.
131+.UNINDENT
132 .SH REPORTING BUGS
133 .sp
134 Report bugs in Launchpad: \fI\%https://bugs.launchpad.net/maas\-test/\fP

Subscribers

People subscribed via source and target branches