Skip to content

Commit 9e8b6bb

Browse files
fix
Formatting of the unified test filter.
1 parent 319d7eb commit 9e8b6bb

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.yamato/project.metafile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,17 @@ unified_test_platforms:
220220
flavor: b1.large
221221

222222
# Restricts the unified job to unified-only tests so nothing else runs on the alpha editor.
223-
# The pattern matches on the NUnit full test name, which covers both the dedicated unified fixtures
224-
# (UnifiedNetworkTransformTest) and any shared fixture parameterized with
225-
# HostOrServer.UnifiedHost / HostOrServer.UnifiedServer, e.g. "NetworkTransformTests(UnifiedHost,...)".
226-
unified_test_filter: "*Unified*"
223+
#
224+
# This is a REGULAR EXPRESSION, not a glob. UTR passes it to the editor as -testFilter, which ends up
225+
# in UnityEngine.TestRunner's FullNameFilter -> NUnit ValueMatchFilter -> new Regex(pattern).IsMatch().
226+
# A glob-style "*Unified*" throws "Quantifier {x,y} following nothing" and fails the whole run.
227+
# The other jobs' "Unity.Netcode.RuntimeTests.*" works because it is also a valid regex - it just
228+
# happens to read like a glob.
229+
#
230+
# The match is against the NUnit *full* test name, which includes fixture arguments. That covers both
231+
# the dedicated unified fixtures (UnifiedNetworkTransformTest) and any shared fixture parameterized
232+
# with HostOrServer.UnifiedHost / UnifiedServer, e.g. "NetworkTransformTests(UnifiedHost,...)".
233+
unified_test_filter: ".*Unified.*"
227234

228235

229236
# Scripting backends used by Standalone RunTimeTests---------------------------------------------------

0 commit comments

Comments
 (0)