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
=== modified file 'docs/man/maas-test.8.rst'
--- docs/man/maas-test.8.rst 2014-01-06 07:45:11 +0000
+++ docs/man/maas-test.8.rst 2014-01-08 07:40:55 +0000
@@ -1,8 +1,4 @@
1=========1=========
2
3Test results
4============
5
6maas-test2maas-test
7=========3=========
84
@@ -63,7 +59,7 @@
6359
6460
65Preparing to run61Preparing to run
66----------------62================
6763
68The test will run MAAS in a virtual machine. It will not be installed on your64The test will run MAAS in a virtual machine. It will not be installed on your
69physical system. Nevertheless there are a few things you need to be aware of:65physical system. Nevertheless there are a few things you need to be aware of:
@@ -90,7 +86,7 @@
9086
9187
92Running88Running
93-------89=======
9490
95There is one required argument: the network interface which connects the91There is one required argument: the network interface which connects the
96testing system to the testing network, e.g. `eth1`.92testing system to the testing network, e.g. `eth1`.
@@ -107,10 +103,10 @@
107============103============
108104
109Once maas-test has finished testing the node it will upload the test105Once maas-test has finished testing the node it will upload the test
110results to Launchpad (unless told otherwise; see106results to Launchpad (unless told otherwise; see the `reporting options`_).
111:ref:`reporting-options`). This allows you to share the test results107This allows you to share the test results with others, including the MAAS
112with others, including the MAAS developers, by filing a Launchpad bug108developers, by filing a Launchpad bug which includes the test results as an
113which includes the test results as an attachment.109attachment.
114110
115By defaults the results will also be written to timestamped log files111By defaults the results will also be written to timestamped log files
116under `~/.maas-test/logs`.112under `~/.maas-test/logs`.
@@ -194,7 +190,8 @@
194 The proxy software used is `polipo`. The cache will be stored under190 The proxy software used is `polipo`. The cache will be stored under
195 `~/.maas-test`.191 `~/.maas-test`.
196192
197.. _reporting-options193.. _`reporting options`:
194
198--no-reporting195--no-reporting
199 Turn off all reporting of test results. Results will be written to196 Turn off all reporting of test results. Results will be written to
200 stdout but not recorded elsewhere.197 stdout but not recorded elsewhere.
201198
=== modified file 'maastest/report.py'
--- maastest/report.py 2014-01-06 07:45:52 +0000
+++ maastest/report.py 2014-01-08 07:40:55 +0000
@@ -30,6 +30,7 @@
30from apiclient import multipart30from apiclient import multipart
31from xdg import BaseDirectory31from xdg import BaseDirectory
3232
33
33# This is largely cargo-culted from apiclient.multipart because34# This is largely cargo-culted from apiclient.multipart because
34# Launchpad only pays attention to the first Content-Disposition header35# Launchpad only pays attention to the first Content-Disposition header
35# on an attachment, and if we want the content to actually be attached36# on an attachment, and if we want the content to actually be attached
@@ -141,7 +142,8 @@
141 """Handle the reporting of maas-test results.142 """Handle the reporting of maas-test results.
142143
143 :param results: The results to report.144 :param results: The results to report.
144 :param log_only: If True, write the results to a file but don't submit them to Launchpad.145 :param log_only: If True, write the results to a file but don't submit
146 them to Launchpad.
145 :param now: The current date/time (used for testing only).147 :param now: The current date/time (used for testing only).
146 :type now: datetime.datetime.148 :type now: datetime.datetime.
147 """149 """
148150
=== modified file 'man/maas-test.8'
--- man/maas-test.8 2013-12-10 13:56:55 +0000
+++ man/maas-test.8 2014-01-08 07:40:55 +0000
@@ -73,7 +73,7 @@
73.sp73.sp
74In addition to being on the testing network, the testing system must also have74In addition to being on the testing network, the testing system must also have
75internet access.75internet access.
76.SS Preparing to run76.SH PREPARING TO RUN
77.sp77.sp
78The test will run MAAS in a virtual machine. It will not be installed on your78The test will run MAAS in a virtual machine. It will not be installed on your
79physical system. Nevertheless there are a few things you need to be aware of:79physical system. Nevertheless there are a few things you need to be aware of:
@@ -99,7 +99,7 @@
99for the virtual machine, and for booting the node. As a rule of thumb, count99for the virtual machine, and for booting the node. As a rule of thumb, count
100on half a gigabyte as a baseline, plus a quarter gigabyte for each combination100on half a gigabyte as a baseline, plus a quarter gigabyte for each combination
101of architecture and Ubuntu release that will run on the node.101of architecture and Ubuntu release that will run on the node.
102.SS Running102.SH RUNNING
103.sp103.sp
104There is one required argument: the network interface which connects the104There is one required argument: the network interface which connects the
105testing system to the testing network, e.g. \fIeth1\fP\&.105testing system to the testing network, e.g. \fIeth1\fP\&.
@@ -113,6 +113,16 @@
113Manually when running in \fIinteractive mode\fP\&. The test will stop and ask you113Manually when running in \fIinteractive mode\fP\&. The test will stop and ask you
114to power up the node.114to power up the node.
115.UNINDENT115.UNINDENT
116.SH TEST RESULTS
117.sp
118Once maas\-test has finished testing the node it will upload the test
119results to Launchpad (unless told otherwise; see the \fI\%reporting options\fP).
120This allows you to share the test results with others, including the MAAS
121developers, by filing a Launchpad bug which includes the test results as an
122attachment.
123.sp
124By defaults the results will also be written to timestamped log files
125under \fI~/.maas\-test/logs\fP\&.
116.SH OPTIONS126.SH OPTIONS
117.INDENT 0.0127.INDENT 0.0
118.TP128.TP
@@ -191,6 +201,17 @@
191The proxy software used is \fIpolipo\fP\&. The cache will be stored under201The proxy software used is \fIpolipo\fP\&. The cache will be stored under
192\fI~/.maas\-test\fP\&.202\fI~/.maas\-test\fP\&.
193.UNINDENT203.UNINDENT
204.INDENT 0.0
205.TP
206.B \-\-no\-reporting
207Turn off all reporting of test results. Results will be written to
208stdout but not recorded elsewhere.
209.TP
210.B \-\-log\-results\-only
211Write test results to a file, but don\(aqt upload them to Launchpad.
212Results will be written to a timestamped log file under
213~/.maas\-test/logs.
214.UNINDENT
194.SH REPORTING BUGS215.SH REPORTING BUGS
195.sp216.sp
196Report bugs in Launchpad: \fI\%https://bugs.launchpad.net/maas\-test/\fP217Report bugs in Launchpad: \fI\%https://bugs.launchpad.net/maas\-test/\fP

Subscribers

People subscribed via source and target branches