Skip to content

Commit 4904f85

Browse files
committed
Fix runGameTestClient task also running common tests
1 parent e5b46ad commit 4904f85

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

build.gradle

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,15 @@ minecraft {
184184
}
185185
}
186186

187+
// internal run config to automatically run the client-side gametests with the runGameTestClient task
188+
runGameTestClientInternal {
189+
parent runs.testClient
190+
191+
lazyToken("minecraft_classpath", lazyTokens["minecraft_classpath"])
192+
193+
property 'advancedperipheralstest.tags', 'client'
194+
}
195+
187196
gameTestServer {
188197
def oldClasspath = lazyTokens["minecraft_classpath"]
189198
lazyToken("minecraft_classpath") {
@@ -669,6 +678,5 @@ publishing {
669678

670679
tasks.register('runGameTestClient', ClientJavaExec, { task ->
671680
description "Runs client-side gametests with no mods"
672-
setRunConfig(minecraft.runs["testClient"])
673-
tags("client")
681+
setRunConfig(minecraft.runs.runGameTestClientInternal)
674682
})

0 commit comments

Comments
 (0)