Skip to content

Commit

Permalink
Fix oppia#20947: Fix backend flake for check_tests_are_captured_in_ci…
Browse files Browse the repository at this point in the history
…_test. (oppia#20948)

* Updates

* Updates
  • Loading branch information
jnvtnguyen authored Sep 9, 2024
1 parent 2bd6d40 commit 666c45a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions scripts/check_tests_are_captured_in_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ def get_acceptance_test_suites_from_ci_config_file() -> List[TestSuiteDict]:
acceptance_test_suite_config = json.load(f)
acceptance_test_suites: List[TestSuiteDict] = (
acceptance_test_suite_config['suites'])
return acceptance_test_suites
return sorted(
acceptance_test_suites,
key=lambda x: x['name']
)


def get_e2e_test_suites_from_ci_config_file() -> List[TestSuiteDict]:
Expand Down Expand Up @@ -165,7 +168,10 @@ def get_e2e_test_suites_from_webdriverio_config_file() -> List[TestSuiteDict]:
'module': test_suite_module
}
)
return e2e_test_suites
return sorted(
e2e_test_suites,
key=lambda x: x['name']
)


def get_acceptance_test_suites_from_acceptance_directory() -> List[TestSuiteDict]: # pylint: disable=line-too-long
Expand Down Expand Up @@ -193,7 +199,10 @@ def get_acceptance_test_suites_from_acceptance_directory() -> List[TestSuiteDict
'name': acceptance_test_suite_name,
'module': os.path.relpath(module, os.getcwd())
})
return acceptance_test_suites
return sorted(
acceptance_test_suites,
key=lambda x: x['name']
)


def compute_test_suites_difference(
Expand Down

0 comments on commit 666c45a

Please sign in to comment.