def testIsCtsTest(self):
     self.assertTrue(cts_helper.isCtsTest('cheets_CTS_N.arm.all'))
     self.assertTrue(cts_helper.isCtsTest('cheets_CTS_N.x86.all'))
     self.assertTrue(cts_helper.isCtsTest('cheets_GTS_N.all'))
     self.assertTrue(cts_helper.isCtsTest('cheets_GTS.all'))
     self.assertFalse(cts_helper.isCtsTest('cheets_GTS'))
     self.assertFalse(cts_helper.isCtsTest('cheets_CTS'))
Example #2
0
    def _ReportResultsToDashboards(self, test_results_dir):
        """Report VMTests results to chromeperf and CTS dashboard.

    Args:
      test_results_dir: Name of the directory containing the test results.
    """
        # TODO(pwang): also upload to sponge and afe/tko so results show up
        # consistently on all dashboards like wmatrix and goldeneye.
        results_path = GetTestResultsDir(self._build_root, test_results_dir)

        # Skip reporting if results_path does not exist or is an empty directory.
        if self._NoTestResults(results_path):
            logging.info(
                'Found no test results. Skipping upload to dashboards.')
            return

        for test_name, test_dir in ListTests(results_path):
            if cts_helper.isCtsTest(test_name):
                self._ReportCtsResults(test_name,
                                       os.path.join(results_path, test_dir))