Fix tests on windows
This commit is contained in:
		
							parent
							
								
									378b8850c6
								
							
						
					
					
						commit
						d1c4082761
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -43,7 +43,7 @@ class AccessWidenerTest extends Specification implements ProjectTestTrait, Archi | ||||||
| 			def result = create("build", gradle) | 			def result = create("build", gradle) | ||||||
| 		then: | 		then: | ||||||
| 			result.task(":build").outcome == SUCCESS | 			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: | 		where: | ||||||
| 			gradle 				| _ | 			gradle 				| _ | ||||||
| 			'6.8.3' 			| _ | 			'6.8.3' 			| _ | ||||||
|  |  | ||||||
|  | @ -28,11 +28,13 @@ import com.google.common.hash.HashCode | ||||||
| import com.google.common.hash.Hashing | import com.google.common.hash.Hashing | ||||||
| import com.google.common.io.Files | import com.google.common.io.Files | ||||||
| import net.fabricmc.loom.util.ProjectTestTrait | import net.fabricmc.loom.util.ProjectTestTrait | ||||||
|  | import spock.lang.IgnoreIf | ||||||
| import spock.lang.Specification | import spock.lang.Specification | ||||||
| import spock.lang.Unroll | import spock.lang.Unroll | ||||||
| 
 | 
 | ||||||
| import static org.gradle.testkit.runner.TaskOutcome.SUCCESS | 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 { | class ReproducibleBuildTest extends Specification implements ProjectTestTrait { | ||||||
| 	@Override | 	@Override | ||||||
| 	String name() { | 	String name() { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue