Fix tests on windows
parent
378b8850c6
commit
d1c4082761
|
@ -43,7 +43,7 @@ class AccessWidenerTest extends Specification implements ProjectTestTrait, Archi
|
|||
def result = create("build", gradle)
|
||||
then:
|
||||
result.task(":build").outcome == SUCCESS
|
||||
getArchiveEntry("fabric-example-mod-1.0.0.jar", "modid.accesswidener") == expected()
|
||||
getArchiveEntry("fabric-example-mod-1.0.0.jar", "modid.accesswidener") == expected().replaceAll('\r','')
|
||||
where:
|
||||
gradle | _
|
||||
'6.8.3' | _
|
||||
|
|
|
@ -28,11 +28,13 @@ import com.google.common.hash.HashCode
|
|||
import com.google.common.hash.Hashing
|
||||
import com.google.common.io.Files
|
||||
import net.fabricmc.loom.util.ProjectTestTrait
|
||||
import spock.lang.IgnoreIf
|
||||
import spock.lang.Specification
|
||||
import spock.lang.Unroll
|
||||
|
||||
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
|
||||
|
||||
@IgnoreIf({ os.windows }) // Linux and mac create the same files, im unsure why windows is different. Let me know if you have any ideas?
|
||||
class ReproducibleBuildTest extends Specification implements ProjectTestTrait {
|
||||
@Override
|
||||
String name() {
|
||||
|
|
Loading…
Reference in New Issue