Skip to content

Commit ee1b7da

Browse files
committed
build: bootstrap remove bad test files run configuration
1 parent 83525d3 commit ee1b7da

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

bootstrap.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,15 @@ def generate_run_configs(self):
11121112
"cwd": mrdocs_docs_ui_dir
11131113
})
11141114

1115+
# Remove bad test files
1116+
test_files_dir = os.path.join(self.options.mrdocs_src_dir, "test-files", "golden-tests")
1117+
configs.append({
1118+
"name": "MrDocs Remove Bad Test Files",
1119+
"script": os.path.join(test_files_dir, f"remove_bad_files.{mrdocs_docs_script_ext}"),
1120+
"args": [],
1121+
"cwd": test_files_dir
1122+
})
1123+
11151124
print("Generating CLion run configurations for MrDocs...")
11161125
self.generate_clion_run_configs(configs)
11171126
print("Generating Visual Studio run configurations for MrDocs...")
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@echo off
2+
REM This script deletes all files matching *.bad.* in the current directory and subdirectories.
3+
4+
setlocal enabledelayedexpansion
5+
set count=0
6+
7+
for /r %%F in (*.bad.*) do (
8+
del "%%F"
9+
set /a count+=1
10+
)
11+
12+
echo Deleted !count! files.
13+
endlocal

0 commit comments

Comments
 (0)