summaryrefslogtreecommitdiff
path: root/buildscripts/antithesis_suite.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/antithesis_suite.py')
-rwxr-xr-xbuildscripts/antithesis_suite.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/buildscripts/antithesis_suite.py b/buildscripts/antithesis_suite.py
index 25114fac786..8397a992ee7 100755
--- a/buildscripts/antithesis_suite.py
+++ b/buildscripts/antithesis_suite.py
@@ -17,6 +17,8 @@ SUITE_BLACKLIST = [
"CheckReplOplogs",
"CleanEveryN",
"ContinuousStepdown",
+ "ValidateCollections",
+ "CheckOrphansDeleted",
]
@@ -32,6 +34,12 @@ def _sanitize_hooks(hooks):
raise RuntimeError('Unknown structure in hook. File a TIG ticket.')
+def _sanitize_test_data(test_data):
+ if test_data.get("useStepdownPermittedFile", None):
+ test_data["useStepdownPermittedFile"] = False
+ return test_data
+
+
_SUITES_PATH = os.path.join("buildscripts", "resmokeconfig", "suites")
@@ -70,6 +78,24 @@ def _generate(suite_name: str) -> None:
except TypeError:
pass
+ try:
+ suite["executor"]["config"]["shell_options"]["global_vars"][
+ "TestData"] = _sanitize_test_data(
+ suite["executor"]["config"]["shell_options"]["global_vars"]["TestData"])
+ except KeyError:
+ # pass, don't care
+ pass
+ except TypeError:
+ pass
+
+ try:
+ suite["executor"]["config"]["shell_options"]["eval"] += "jsTestLog = Function.prototype;"
+ except KeyError:
+ # pass, don't care
+ pass
+ except TypeError:
+ pass
+
out = yaml.dump(suite)
with open(os.path.join(_SUITES_PATH, "antithesis_{}.yml".format(suite_name)), "w") as fstream:
fstream.write(