~nuclearbob/utah/bug1043419

« back to all changes in this revision

Viewing changes to utah/client/result.py

  • Committer: Javier Collado
  • Date: 2012-08-31 09:25:38 UTC
  • mfrom: (663.2.2 utah_install_type)
  • Revision ID: javier.collado@canonical.com-20120831092538-p9vioe3dzsyawrta
Merged lp:~joetalbott/utah/install_type

The changes add `--install-type` option to the client, so that it can add this
information to the results. Also, it enables de server to pass this to the
client when executing it.

Note: the server knows the install type based on the ISO image contents.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    Result collection class.
41
41
    """
42
42
    def __init__(self, name=None, testsuite=None, testcase=None,
43
 
            runlist=None, publish_type=None):
 
43
            runlist=None, publish_type=None, install_type=None):
44
44
        self.results = []
45
45
        self.status = 'PASS'
46
46
        self.name = name
49
49
        self.runlist = runlist
50
50
        self.publish_type = publish_type
51
51
        self.publish = None
 
52
        self.install_type = install_type
52
53
 
53
54
        self.errors = 0
54
55
        self.fetch_errors = 0
166
167
                'passes': self.passes,
167
168
                'uname': list(host_info['uname']),
168
169
                'media-info': host_info['media-info'],
 
170
                'install_type': self.install_type,
169
171
        }
170
172
 
171
173
        if self.publish is not None: