no-random-settings for bugfix validate

This commit is contained in:
vdimir 2022-03-10 12:22:24 +00:00
parent fcb7e9ed36
commit 000a31df3b
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862
2 changed files with 6 additions and 0 deletions

View File

@ -198,6 +198,9 @@ if __name__ == "__main__":
run_log_path = os.path.join(result_path, "runlog.log") run_log_path = os.path.join(result_path, "runlog.log")
additional_envs = get_additional_envs(check_name, run_by_hash_num, run_by_hash_total) additional_envs = get_additional_envs(check_name, run_by_hash_num, run_by_hash_total)
if validate_bugix_check:
additional_envs.append('GLOBAL_TAGS=no-random-settings')
run_command = get_run_command(packages_path, repo_tests_path, result_path, server_log_path, kill_timeout, additional_envs, docker_image, flaky_check, tests_to_run) run_command = get_run_command(packages_path, repo_tests_path, result_path, server_log_path, kill_timeout, additional_envs, docker_image, flaky_check, tests_to_run)
logging.info("Going to run func tests: %s", run_command) logging.info("Going to run func tests: %s", run_command)

View File

@ -464,6 +464,9 @@ class TestCase:
self.case: str = case # case file name self.case: str = case # case file name
self.tags: Set[str] = suite.all_tags[case] if case in suite.all_tags else set() self.tags: Set[str] = suite.all_tags[case] if case in suite.all_tags else set()
for tag in os.getenv("GLOBAL_TAGS", "").split(","):
self.tags.add(tag.strip())
self.case_file: str = os.path.join(suite.suite_path, case) self.case_file: str = os.path.join(suite.suite_path, case)
(self.name, self.ext) = os.path.splitext(case) (self.name, self.ext) = os.path.splitext(case)