summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/evergreen
diff options
context:
space:
mode:
authorEtienne Petrel <etienne.petrel@mongodb.com>2023-01-16 21:21:35 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-16 22:01:30 +0000
commit5a987885e17e1661bc7ee9dea85167b92dd3d21c (patch)
treeb1af581741fea96eafa7b0a6e65c74ec1973fbaa /src/third_party/wiredtiger/test/evergreen
parent9a4442d4377eaadbedaa7a94b5c429387e5343c2 (diff)
downloadmongo-5a987885e17e1661bc7ee9dea85167b92dd3d21c.tar.gz
Import wiredtiger: 5a6f5a90aa6ba3c71194bb6b1d29d269dc817fa7 from branch mongodb-master
ref: aa96cfc75f..5a6f5a90aa for: 6.3.0-rc0 WT-10503 Fix false positives in s_all
Diffstat (limited to 'src/third_party/wiredtiger/test/evergreen')
-rwxr-xr-xsrc/third_party/wiredtiger/test/evergreen/evg_cfg.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/test/evergreen/evg_cfg.py b/src/third_party/wiredtiger/test/evergreen/evg_cfg.py
index 1c55c4b5955..589bd6bef1c 100755
--- a/src/third_party/wiredtiger/test/evergreen/evg_cfg.py
+++ b/src/third_party/wiredtiger/test/evergreen/evg_cfg.py
@@ -133,9 +133,15 @@ def get_make_check_dirs():
# Make sure we are under the repo top level directory
os.chdir(run('git rev-parse --show-toplevel'))
+ # Find the build folder. It can be identified by the presence of the `CMakeFiles` file.
+ p = subprocess.Popen("find . -name CMakeFiles -maxdepth 2", stdout=subprocess.PIPE, shell=True,
+ universal_newlines=True)
+ build_folder = os.path.dirname(p.stdout.read().strip())
+
# Search keyword in CMakeLists.txt to identify directories that involve test configuration.
# Need to use subprocess 'shell=True' to get the expected shell command output.
- cmd = "find . -not -path './releases/*' -name CMakeLists.txt -exec grep -H -e '\(add_test\|define_c_test|define_test_variants\)' {} \; | cut -d: -f1 | cut -c3- | uniq"
+ # `{{}}`` is used here to print `{}` when using python f-strings.
+ cmd = f"find . -not -path './releases/*' -not -path '{build_folder}/*' -name CMakeLists.txt -exec grep -H -e '\(add_test\|define_c_test|define_test_variants\)' {{}} \; | cut -d: -f1 | cut -c3- | uniq"
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True)
mkfiles_with_tests = p.stdout.readlines()