@@ -243,7 +243,7 @@ test(
243
243
'pyc files are packaged'
244
244
) ;
245
245
t . deepEqual (
246
- zipfiles . filter ( filename => filename . includes ( '.egg-infooo ' ) ) ,
246
+ zipfiles . filter ( filename => filename . includes ( '.egg-info ' ) ) ,
247
247
[ ] ,
248
248
'.egg-info folders are NOT packaged'
249
249
) ;
@@ -619,16 +619,17 @@ test("Don't nuke execute perms when using individually", t => {
619
619
process . chdir ( 'tests/individually' ) ;
620
620
const path = npm ( [ 'pack' , '../..' ] ) ;
621
621
const perm = '775' ;
622
- writeFileSync ( ' module1/ foobar' , '' , { mode : perm } ) ;
622
+ writeFileSync ( ` module1${ sep } foobar` , '' , { mode : perm } ) ;
623
623
624
624
npm ( [ 'i' , path ] ) ;
625
625
sls ( [ 'package' ] ) ;
626
626
627
627
const zipfiles_hello = listZipFilesWithMetaData ( '.serverless/hello1.zip' ) ;
628
628
629
629
t . true (
630
- zipfiles_hello [ 'module1/foobar' ] . unixPermissions . toString ( 8 ) . slice ( 3 , 6 ) ===
631
- perm ,
630
+ zipfiles_hello [ `module1${ sep } foobar` ] . unixPermissions
631
+ . toString ( 8 )
632
+ . slice ( 3 , 6 ) === perm ,
632
633
'foobar has retained its executable file permissions'
633
634
) ;
634
635
@@ -641,15 +642,15 @@ test(
641
642
process . chdir ( 'tests/individually' ) ;
642
643
const path = npm ( [ 'pack' , '../..' ] ) ;
643
644
const perm = '775' ;
644
- writeFileSync ( ' module1/ foobar' , '' , { mode : perm } ) ;
645
+ writeFileSync ( ` module1${ sep } foobar` , '' , { mode : perm } ) ;
645
646
646
647
npm ( [ 'i' , path ] ) ;
647
648
sls ( [ '--dockerizePip=true' , 'package' ] ) ;
648
649
649
650
const zipfiles_hello = listZipFilesWithMetaData ( '.serverless/hello1.zip' ) ;
650
651
651
652
t . true (
652
- zipfiles_hello [ ' module1/ foobar' ] . unixPermissions
653
+ zipfiles_hello [ ` module1${ sep } foobar` ] . unixPermissions
653
654
. toString ( 8 )
654
655
. slice ( 3 , 6 ) === perm ,
655
656
'foobar has retained its executable file permissions'
0 commit comments