Merge lp:~pwlars/lava-test/generate-bundle into lp:lava-test/0.0

Proposed by Paul Larson
Status: Merged
Merged at revision: 36
Proposed branch: lp:~pwlars/lava-test/generate-bundle
Merge into: lp:lava-test/0.0
Diff against target: 0 lines
To merge this branch: bzr merge lp:~pwlars/lava-test/generate-bundle
Reviewer Review Type Date Requested Status
James Westby (community) Approve
Review via email: mp+36803@code.launchpad.net

Description of the change

This is a stepping stone to adding a put subcommand to push results to the dashboard directly. But I think Zygmunt wanted a command to just produce bundles, and I think it's useful for debugging at the very least.

To post a comment you must log in.
Revision history for this message
James Westby (james-w) wrote :

Hi,

40 + resultdir = os.path.join(config.resultsdir,result)

Space after the comma please.

146 + make_stream_result(self.config)
147 + cmd.main(argv=['stream000'])

Please have make_stream_result return the "stream000" value, magic
strings are bad.

Having e.g. analyzer_assigned_uuid repeated isn't great either, but
that's trickier to fix.

149 + self.assertEqual(expected_dict, returned_dict)
150 +
151 +def make_stream_result(config):

Two blank lines please.

Thanks,

James

review: Approve
lp:~pwlars/lava-test/generate-bundle updated
38. By Paul Larson

Fix up some formatting errors in _savetestdata

Revision history for this message
Paul Larson (pwlars) wrote :

On Mon, 2010-09-27 at 23:52 +0000, James Westby wrote:
> Please have make_stream_result return the "stream000" value, magic
> strings are bad.
>
> Having e.g. analyzer_assigned_uuid repeated isn't great either, but
> that's trickier to fix.
So I was able to work around this as well by having it assign a uuid and
return that along with the test id.
Thanks,
Paul Larson

lp:~pwlars/lava-test/generate-bundle updated
39. By Paul Larson

some minor cleanups

40. By Paul Larson

have make_stream_result return the test id and uuid that were assigned
so that the test can use them for comparison

Preview Diff

Empty

Subscribers

People subscribed via source and target branches