Skip to content

Commit

Permalink
Removed old script unit tests (#600)
Browse files Browse the repository at this point in the history
Removed unit tests related to the old script, `cdash_analyze_and_report_random_failures.py`.
These tests will be put back as unittests for the module file `CDashAnalyzeReportRandomFailures.py`.

This change will keep `cdash_analyze_and_report_random_failures_UnitTests.py` focused on
the system tests for how the class `CDashAnalyzeReportRandomFailuresDriver` is used.
  • Loading branch information
achauphan committed Feb 13, 2024
1 parent 10d9b76 commit c7ae356
Showing 1 changed file with 0 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@

from FindCISupportDir import *
import CDashQueryAnalyzeReport as CDQAR
from cdash_analyze_and_report_random_failures import *
from CDashQueryAnalyzeReportUnitTestHelpers import *

# Base test directory in the build tree
Expand Down Expand Up @@ -102,30 +101,6 @@ def __enter__(self):
def __exit__(self, exc_type, exc_val, exc_tb):
self.remove()

#############################################################################
#
# Unit tests for cdash_analyze_and_report_random_failures.py
#
#############################################################################


class test_getBuildIdFromTest(unittest.TestCase):

def test_single_slash(self):
test_dict = { 'buildSummaryLink':'build/somenumber' }
self.assertEqual(
getBuildIdFromTest(test_dict), 'somenumber')

def test_multiple_slash(self):
test_dict = { 'buildSummaryLink':'build/path/temp/somenumber' }
self.assertEqual(
getBuildIdFromTest(test_dict), 'somenumber')

def test_no_slash(self):
test_dict = { 'buildSummaryLink':'buildid' }
self.assertEqual(
getBuildIdFromTest(test_dict), 'buildid')


#############################################################################
#
Expand Down

0 comments on commit c7ae356

Please sign in to comment.