def run(self):
        try:
            import coverage
            cov = coverage.coverage()
            cov.start()
        except ImportError:
            cov = None

        suite = unittest.TestSuite()
        if self.test == '*':
            print('Running all tests')
            tests = stomp.test.__all__
        else:
            tests = self.test.split(',')        
        import stomp.test
        for tst in tests:
            suite.addTests(unittest.TestLoader().loadTestsFromName('stomp.test.%s' % tst))

        runner = unittest.TextTestRunner(verbosity=2)
        res = runner.run(suite)
        if len(res.errors) > 0 or 0 > len(res.failures):
            sys.exit(1)

        if cov:
            cov.stop()
            cov.save()
            cov.html_report(directory='../stomppy-docs/htmlcov')
dataset/ETHPy150Open jasonrbriggs/stomp.py/setup.py/TestCommand.run/swapped operands of `>`