summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorSergey Galtsev <sergey.galtsev@mongodb.com>2022-10-10 15:08:14 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-10-10 15:43:40 +0000
commitb61927c6cdb116d1334789f563fc6558d1e775ed (patch)
tree508c70a2623704fefaeff478eccd22935d367f3c /jstests
parentcef53688a43a60e89aa99a4793221654a4280f1f (diff)
downloadmongo-b61927c6cdb116d1334789f563fc6558d1e775ed.tar.gz
SERVER-69884 filter out tests with featureFlagXXX from selinux
Diffstat (limited to 'jstests')
-rw-r--r--jstests/selinux/core.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/jstests/selinux/core.js b/jstests/selinux/core.js
index c09f6a194d2..1ab40001124 100644
--- a/jstests/selinux/core.js
+++ b/jstests/selinux/core.js
@@ -40,11 +40,21 @@ class TestDefinition extends SelinuxBaseTest {
runNonMongoProgram(python,
"buildscripts/resmokelib/utils/check_has_tag.py",
t,
- "no_selinux")) {
+ "^no_selinux$")) {
jsTest.log("Skipping test due to no_selinux tag: " + t);
continue;
}
+ // Tests relying on featureFlagXXX will not work
+ if (HAS_TAG ==
+ runNonMongoProgram(python,
+ "buildscripts/resmokelib/utils/check_has_tag.py",
+ t,
+ "^featureFlag.+$")) {
+ jsTest.log("Skipping test due to feature flag tag: " + t);
+ continue;
+ }
+
jsTest.log("Running test: " + t);
if (!load(t)) {
throw ("failed to load test " + t);