Skip to content

Commit 04c5578

Browse files
iText-CIEvgenyB1001
authored andcommitted
Rework isIgnoredClassOrPackage method
DEVSIX-3147 Autoported commit. Original commit hash: [7823befa1] Manual files: pdftest/src/main/java/com/itextpdf/test/WrappedSamplesRunner.java
1 parent cbdde6d commit 04c5578

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

itext/itext.pdftest/itext/test/WrappedSamplesRunner.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,12 @@ private static WrappedSamplesRunner.RunnerParams CheckIfTestAndCreateParams(Type
207207

208208
private static bool IsIgnoredClassOrPackage(String fullName, RunnerSearchConfig searchConfig) {
209209
foreach (String ignoredPath in searchConfig.GetIgnoredPaths()) {
210-
if (fullName.Contains(ignoredPath)) {
210+
String filePath = Path.Combine(TestUtil.GetParentProjectDirectory(TestContext
211+
.CurrentContext.TestDirectory),
212+
ignoredPath.Replace(".", "\\"));
213+
214+
if ((Directory.Exists(filePath) && fullName.Contains(ignoredPath))
215+
|| (File.Exists(filePath + ".cs") && fullName.Equals(ignoredPath))) {
211216
return true;
212217
}
213218
}

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d5a591352c1e35e6224a8f1460bd6cd17ee11d80
1+
7823befa1b99f1c8f2981aea0d336b3ad639235a

0 commit comments

Comments
 (0)