@@ -195,8 +195,10 @@ object ZipOpTests extends TestSuite {
195195 ) = {
196196 val zipFileName = " zipped.zip"
197197 val source = wd / " folder2"
198- os.perms.set(source / " nestedA" / " a.txt" , os.PermSet .fromString(" rw-rw-rw-" ))
199- os.symlink(source / " nestedA" / " link.txt" , os.rel / " a.txt" )
198+ if (! scala.util.Properties .isWin) {
199+ os.perms.set(source / " nestedA" / " a.txt" , os.PermSet .fromString(" rw-rw-rw-" ))
200+ os.symlink(source / " nestedA" / " link.txt" , os.rel / " a.txt" )
201+ }
200202
201203 val zipped =
202204 if (zipStream) {
@@ -232,53 +234,59 @@ object ZipOpTests extends TestSuite {
232234 def walkRel (p : os.Path ) = os.walk(p).map(_.relativeTo(p))
233235
234236 test(" zip" ) - prep { wd =>
235- val (source, unzipped) = prepare(wd)
236-
237- assert(walkRel(source).toSet == walkRel(unzipped).toSet)
238- assert(os.walk.stream(source)
239- .filter(! os.isLink(_))
240- .forall(p => os.perms(p) == os.perms(unzipped / p.relativeTo(source))))
241- assert(
242- os.walk.stream(source)
243- .filter(os.isLink(_))
244- .forall { p =>
245- val unzippedLink = unzipped / p.relativeTo(source)
246- os.isLink(unzippedLink) &&
247- os.readLink(p) == os.readLink(unzippedLink)
248- }
249- )
237+ if (! scala.util.Properties .isWin) {
238+ val (source, unzipped) = prepare(wd)
239+
240+ assert(walkRel(source).toSet == walkRel(unzipped).toSet)
241+ assert(os.walk.stream(source)
242+ .filter(! os.isLink(_))
243+ .forall(p => os.perms(p) == os.perms(unzipped / p.relativeTo(source))))
244+ assert(
245+ os.walk.stream(source)
246+ .filter(os.isLink(_))
247+ .forall { p =>
248+ val unzippedLink = unzipped / p.relativeTo(source)
249+ os.isLink(unzippedLink) &&
250+ os.readLink(p) == os.readLink(unzippedLink)
251+ }
252+ )
253+ }
250254 }
251255
252256 test(" zipStream" ) - prep { wd =>
253- val (source, unzipped) = prepare(wd, zipStream = true )
254-
255- assert(walkRel(source).toSet == walkRel(unzipped).toSet)
256- assert(os.walk.stream(source)
257- .filter(! os.isLink(_))
258- .forall(p => os.perms(p) == os.perms(unzipped / p.relativeTo(source))))
259- assert(
260- os.walk.stream(source)
261- .filter(os.isLink(_))
262- .forall { p =>
263- val unzippedLink = unzipped / p.relativeTo(source)
264- os.isLink(unzippedLink) &&
265- os.readLink(p) == os.readLink(unzippedLink)
266- }
267- )
257+ if (! scala.util.Properties .isWin) {
258+ val (source, unzipped) = prepare(wd, zipStream = true )
259+
260+ assert(walkRel(source).toSet == walkRel(unzipped).toSet)
261+ assert(os.walk.stream(source)
262+ .filter(! os.isLink(_))
263+ .forall(p => os.perms(p) == os.perms(unzipped / p.relativeTo(source))))
264+ assert(
265+ os.walk.stream(source)
266+ .filter(os.isLink(_))
267+ .forall { p =>
268+ val unzippedLink = unzipped / p.relativeTo(source)
269+ os.isLink(unzippedLink) &&
270+ os.readLink(p) == os.readLink(unzippedLink)
271+ }
272+ )
273+ }
268274 }
269275
270276 test(" unzipStream" ) - prep { wd =>
271- val (source, unzipped) = prepare(wd, zipStream = true )
272-
273- assert(walkRel(source).toSet == walkRel(unzipped).toSet)
274- assert(
275- os.walk.stream(source)
276- .filter(os.isLink(_))
277- .forall { p =>
278- val unzippedLink = unzipped / p.relativeTo(source)
279- os.read(p) == os.read(unzippedLink)
280- }
281- )
277+ if (! scala.util.Properties .isWin) {
278+ val (source, unzipped) = prepare(wd, zipStream = true )
279+
280+ assert(walkRel(source).toSet == walkRel(unzipped).toSet)
281+ assert(
282+ os.walk.stream(source)
283+ .filter(os.isLink(_))
284+ .forall { p =>
285+ val unzippedLink = unzipped / p.relativeTo(source)
286+ os.read(p) == os.read(unzippedLink)
287+ }
288+ )
289+ }
282290 }
283291 }
284292
0 commit comments