Skip to content

Commit 794124f

Browse files
authored
Skip tests on internal queues too (#59574)
* Skip tests on internal too * StringComparison
1 parent dd45f48 commit 794124f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Testing/src/xunit/SkipOnHelixAttribute.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ private bool ShouldSkip()
6666
return true;
6767
}
6868

69-
return Queues.ToLowerInvariant().Split(';').Contains(targetQueue);
69+
// We have "QueueName" and "QueueName.Open" queues for internal and public builds
70+
// If we want to skip the test in the public queue, we want to skip it in the internal queue, and vice versa
71+
return Queues.ToLowerInvariant().Split(';').Any(q => q.Equals(targetQueue, StringComparison.Ordinal) || q.StartsWith(targetQueue, StringComparison.Ordinal) ||
72+
targetQueue.StartsWith(q, StringComparison.Ordinal));
7073
}
7174

7275
public static bool OnHelix() => HelixHelper.OnHelix();

0 commit comments

Comments
 (0)