~ubuntu-branches/ubuntu/natty/mago/natty

« back to all changes in this revision

Viewing changes to mago/cmd/runner.py

  • Committer: Bazaar Package Importer
  • Author(s): Ara Pulido
  • Date: 2010-04-14 14:05:34 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100414140534-grv0bwv9wv97khir
Tags: 0.2-0ubuntu1
* Mago tests updated for Lucid
  + Fixes arguments handling (LP: #562965)
  + Fixes seahorse tests (LP: #552618)
  + Fixes ubuntu-menu tests (LP: #551492)

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
        """
27
27
        Run test case and gather results
28
28
        """
 
29
        if self.case_data.skip:
 
30
            logging.info("Skipping test case '%s'" % \
 
31
                             self.case_data.name)
 
32
            return
 
33
 
29
34
        logging.info("Running test case '%s' (%s)"
30
35
                     % (self.case_data.name,
31
36
                        self.case_data.methodname))
81
86
 
82
87
        # Get the suite implementation
83
88
        # in order to be able to execute it's method
84
 
        self.suite = suite_data.get_class()
 
89
        if not self.suite_data.skip:
 
90
            self.suite = suite_data.get_class()
85
91
 
86
92
    
87
93
    def run(self, loggerclass=None, setup_once=True):
88
94
        """
89
95
        Run the test suite and return xml report
90
96
        """
 
97
        if self.suite_data.skip:
 
98
            logging.info("Skipping test suite '%s'" % \
 
99
                             self.suite_data.name)
 
100
            return etree.tostring(self.suite_data.root, "utf-8")
 
101
 
91
102
        logging.info("Running test suite '%s' (%s)"
92
103
                     % (self.suite_data.name,
93
104
                        self.suite_data.fullname))