Skip to content

Commit d2d4730

Browse files
committed
Test proving #166
1 parent 15ef747 commit d2d4730

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test.bats

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,3 +217,16 @@ teardown() {
217217
ls puck/flask
218218
ls puck/lambda_decorators.py
219219
}
220+
221+
@test "Don't nuke execute perms" {
222+
cd tests/base
223+
npm i $(npm pack ../..)
224+
touch foobar
225+
chmod +x foobar
226+
perl -p -i'.bak' -e 's/(handler.py$)/\1\n - foobar/' serverless.yml
227+
sls --vendor=./vendor package
228+
unzip .serverless/sls-py-req-test.zip -d puck
229+
ls puck/flask
230+
ls puck/lambda_decorators.py
231+
./puck/foobar
232+
}

0 commit comments

Comments
 (0)