~launchpad-results/launchpad-results/trunk

« back to all changes in this revision

Viewing changes to lib/lpresults/xunit/parsers/dmidecode.py

  • Committer: Marc Tardif
  • Date: 2012-03-21 22:32:04 UTC
  • Revision ID: marc.tardif@canonical.com-20120321223204-8g7mvzzwmh8ifbrt
Added support for getting systems from a person (LP #899361)

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
        return value
59
59
 
60
60
    def run(self, result):
61
 
        output = self.stream.read()
62
 
        for record in re.split(r"\n{2,}", output):
 
61
        dmidecode = self.stream.read()
 
62
        for record in re.split(r"\n{2,}", dmidecode):
63
63
            record = record.strip()
64
64
            # Skip empty records
65
65
            if not record: