Skip to content

Commit 38dd31f

Browse files
CourtneyCourtney
Courtney
authored and
Courtney
committed
Merge branch 'master' into fix_docker_cache
2 parents a49b3b7 + 78225f3 commit 38dd31f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test.bats

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
setup() {
55
export SLS_DEBUG=t
6-
export LC_ALL=C.UTF-8
7-
export LANG=C.UTF-8
86

97
cd test
108

@@ -37,7 +35,7 @@ teardown() {
3735
}
3836

3937
@test "py3.6 doesn't package bottle with noDeploy option" {
40-
sed -i'.bak' -re 's/(pythonRequirements:$)/\1\n noDeploy: [bottle]/' serverless.yml
38+
perl -p -i'.bak' -e 's/(pythonRequirements:$)/\1\n noDeploy: [bottle]/' serverless.yml
4139
sls package
4240
unzip .serverless/sls-py-req-test.zip -d puck
4341
! ls puck/bottle.py
@@ -87,7 +85,7 @@ teardown() {
8785
}
8886

8987
@test "py2.7 doesn't package bottle with noDeploy option" {
90-
sed -i'.bak' -re 's/(pythonRequirements:$)/\1\n noDeploy: [bottle]/' serverless.yml
88+
perl -p -i'.bak' -e 's/(pythonRequirements:$)/\1\n noDeploy: [bottle]/' serverless.yml
9189
sls --runtime=python2.7 package
9290
unzip .serverless/sls-py-req-test.zip -d puck
9391
! ls puck/bottle.py
@@ -136,7 +134,7 @@ teardown() {
136134
@test "pipenv py3.6 doesn't package bottle with noDeploy option" {
137135
cd ../pipenv-example
138136
npm i ..
139-
sed -i'.bak' -re 's/(pythonRequirements:$)/\1\n noDeploy: [bottle]/' serverless.yml
137+
perl -p -i'.bak' -e 's/(pythonRequirements:$)/\1\n noDeploy: [bottle]/' serverless.yml
140138
sls package
141139
unzip .serverless/sls-py-req-test.zip -d puck
142140
! ls puck/bottle.py

0 commit comments

Comments
 (0)