@@ -615,26 +615,30 @@ test('py3.6 can package lambda-decorators using vendor and invidiually option',
615
615
t . end ( ) ;
616
616
} ) ;
617
617
618
- test ( "Don't nuke execute perms when using individually" , t => {
619
- process . chdir ( 'tests/individually' ) ;
620
- const path = npm ( [ 'pack' , '../..' ] ) ;
621
- const perm = '775' ;
622
- writeFileSync ( `module1${ sep } foobar` , '' , { mode : perm } ) ;
618
+ test (
619
+ "Don't nuke execute perms when using individually" ,
620
+ t => {
621
+ process . chdir ( 'tests/individually' ) ;
622
+ const path = npm ( [ 'pack' , '../..' ] ) ;
623
+ const perm = '775' ;
624
+ writeFileSync ( `module1${ sep } foobar` , '' , { mode : perm } ) ;
623
625
624
- npm ( [ 'i' , path ] ) ;
625
- sls ( [ 'package' ] ) ;
626
+ npm ( [ 'i' , path ] ) ;
627
+ sls ( [ 'package' ] ) ;
626
628
627
- const zipfiles_hello = listZipFilesWithMetaData ( '.serverless/hello1.zip' ) ;
629
+ const zipfiles_hello = listZipFilesWithMetaData ( '.serverless/hello1.zip' ) ;
628
630
629
- t . true (
630
- zipfiles_hello [ ` module1${ sep } foobar` ] . unixPermissions
631
- . toString ( 8 )
632
- . slice ( 3 , 6 ) === perm ,
633
- 'foobar has retained its executable file permissions'
634
- ) ;
631
+ t . true (
632
+ zipfiles_hello [ ' module1$/ foobar' ] . unixPermissions
633
+ . toString ( 8 )
634
+ . slice ( 3 , 6 ) === perm ,
635
+ 'foobar has retained its executable file permissions'
636
+ ) ;
635
637
636
- t . end ( ) ;
637
- } ) ;
638
+ t . end ( ) ;
639
+ } ,
640
+ { skip : process . platform === 'win32' }
641
+ ) ;
638
642
639
643
test (
640
644
"Don't nuke execute perms when using individually w/docker" ,
@@ -650,15 +654,15 @@ test(
650
654
const zipfiles_hello = listZipFilesWithMetaData ( '.serverless/hello1.zip' ) ;
651
655
652
656
t . true (
653
- zipfiles_hello [ ` module1${ sep } foobar` ] . unixPermissions
657
+ zipfiles_hello [ ' module1$/ foobar' ] . unixPermissions
654
658
. toString ( 8 )
655
659
. slice ( 3 , 6 ) === perm ,
656
660
'foobar has retained its executable file permissions'
657
661
) ;
658
662
659
663
t . end ( ) ;
660
664
} ,
661
- { skip : ! canUseDocker ( ) }
665
+ { skip : ! canUseDocker ( ) || process . platform === 'win32' }
662
666
) ;
663
667
664
668
test ( 'py3.6 uses download cache with useDownloadCache option' , t => {
0 commit comments