Skip to content

Commit

Permalink
Renamed tests to better reflect script name (TriBITSPub#600)
Browse files Browse the repository at this point in the history
Test layout was copied from another script. Renamed various functions and
function calls to reflect the actual script name that is being tested.
  • Loading branch information
achauphan committed Jan 29, 2024
1 parent 3ad4517 commit b4329bb
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
from CDashQueryAnalyzeReportUnitTestHelpers import *

# Base test directory in the build tree
g_baseTestDir = "cdash_analyze_and_report"
g_baseTestDir = "cdash_analyze_and_report_random_failures"


def cdash_analyze_and_report_setup_test_dir(testCaseName):
def cdash_analyze_and_report_random_failures_setup_test_dir(testCaseName):
testInputDir = testCiSupportDir + "/" + g_baseTestDir + "/" + testCaseName
testOutputDir = os.getcwd()
for f in os.listdir(testInputDir):
Expand Down Expand Up @@ -135,7 +135,7 @@ def test_no_slash(self):


class test_cdash_analyze_and_report_random_failures(unittest.TestCase):
def cdash_analyze_and_report_run_case(
def cdash_analyze_and_report_random_failures_run_case(
self,
expectedRtnCode,
stdoutRegexList,
Expand Down Expand Up @@ -189,10 +189,10 @@ def setUp(self):
def tearDown(self):
self.test_dir.remove()

def test(self):
cdash_analyze_and_report_setup_test_dir("random")
def test_base(self):
cdash_analyze_and_report_random_failures_setup_test_dir("random")

self.cdash_analyze_and_report_run_case(
self.cdash_analyze_and_report_random_failures_run_case(
expectedRtnCode=0,
stdoutRegexList=[
"Number of failing tests from 2018-10-28 to 2018-10-28: 1"
Expand Down

0 comments on commit b4329bb

Please sign in to comment.