Skip to content

Commit 78225f3

Browse files
committed
make test work on macs. stupid BSD sed
1 parent a25ba8f commit 78225f3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test.bats

+3-5
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
@@ -79,7 +77,7 @@ teardown() {
7977
}
8078

8179
@test "py2.7 doesn't package bottle with noDeploy option" {
82-
sed -i'.bak' -re 's/(pythonRequirements:$)/\1\n noDeploy: [bottle]/' serverless.yml
80+
perl -p -i'.bak' -e 's/(pythonRequirements:$)/\1\n noDeploy: [bottle]/' serverless.yml
8381
sls --runtime=python2.7 package
8482
unzip .serverless/sls-py-req-test.zip -d puck
8583
! ls puck/bottle.py
@@ -128,7 +126,7 @@ teardown() {
128126
@test "pipenv py3.6 doesn't package bottle with noDeploy option" {
129127
cd ../pipenv-example
130128
npm i ..
131-
sed -i'.bak' -re 's/(pythonRequirements:$)/\1\n noDeploy: [bottle]/' serverless.yml
129+
perl -p -i'.bak' -e 's/(pythonRequirements:$)/\1\n noDeploy: [bottle]/' serverless.yml
132130
sls package
133131
unzip .serverless/sls-py-req-test.zip -d puck
134132
! ls puck/bottle.py

0 commit comments

Comments
 (0)