Skip to content

Commit 121219c

Browse files
author
bweigel
committed
fixes formatting issues with perl commands
1 parent 82ebc54 commit 121219c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

test.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const teardown = () => {
6161
'package-lock.json',
6262
'slimPatterns.yml',
6363
'serverless.yml.bak',
64+
'module1/foobar',
6465
getUserCachePath(),
6566
...glob.sync('serverless-python-requirements-*.tgz')
6667
].map(path => removeSync(path));
@@ -210,7 +211,7 @@ test("py3.6 doesn't package bottle with noDeploy option", t => {
210211
npm(['i', path]);
211212
perl([
212213
'-p',
213-
"-i'.bak'",
214+
'-i.bak',
214215
'-e',
215216
's/(pythonRequirements:$)/\\1\\n noDeploy: [bottle]/',
216217
'serverless.yml'
@@ -437,7 +438,7 @@ test("py2.7 doesn't package bottle with noDeploy option", t => {
437438
npm(['i', path]);
438439
perl([
439440
'-p',
440-
"-i'.bak'",
441+
'-i.bak',
441442
'-e',
442443
's/(pythonRequirements:$)/\\1\\n noDeploy: [bottle]/',
443444
'serverless.yml'
@@ -676,7 +677,7 @@ test("pipenv py3.6 doesn't package bottle with noDeploy option", t => {
676677
npm(['i', path]);
677678
perl([
678679
'-p',
679-
"-i'.bak'",
680+
'-i.bak',
680681
'-e',
681682
's/(pythonRequirements:$)/\\1\\n noDeploy: [bottle]/',
682683
'serverless.yml'
@@ -692,8 +693,8 @@ test('py3.6 can package flask with zip option and no explicit include', t => {
692693
process.chdir('tests/base');
693694
const path = npm(['pack', '../..']);
694695
npm(['i', path]);
695-
perl(['-p', "-i'.bak'", '-e', 's/include://', 'serverless.yml']);
696-
perl(['-p', "-i'.bak'", '-e', 's/^.*handler.py.*$//', 'serverless.yml']);
696+
perl(['-p', '-i.bak', '-e', 's/include://', 'serverless.yml']);
697+
perl(['-p', '-i.bak', '-e', 's/^.*handler.py.*$//', 'serverless.yml']);
697698
sls(['--zip=true', 'package']);
698699
const zipfiles = listZipFiles('.serverless/sls-py-req-test.zip');
699700
t.true(
@@ -733,7 +734,7 @@ test(
733734
npm(['i', path]);
734735
perl([
735736
'-p',
736-
"-i'.bak'",
737+
'-i.bak',
737738
'-e',
738739
's/(handler.py.*$)/$1\n - foobar/',
739740
'serverless.yml'
@@ -821,7 +822,7 @@ test("py3.6 doesn't package bottle with zip option", t => {
821822
npm(['i', path]);
822823
perl([
823824
'-p',
824-
"-i'.bak'",
825+
'-i.bak',
825826
'-e',
826827
's/(pythonRequirements:$)/\\1\\n noDeploy: [bottle]/',
827828
'serverless.yml'

0 commit comments

Comments
 (0)