Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 63edf6b

Browse files
committed
simpler test cleanup
precursor to JS version since i want it as simple as possible before port
1 parent a42eee3 commit 63edf6b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

test.bats

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@ setup() {
1818

1919
teardown() {
2020
rm -rf puck puck2 puck3 node_modules .serverless .requirements.zip .requirements-cache \
21-
foobar package-lock.json serverless-python-requirements-*.tgz
22-
if [ -f serverless.yml.bak ]; then mv serverless.yml.bak serverless.yml; fi
23-
if [ -f slimPatterns.yml ]; then rm -f slimPatterns.yml; fi
24-
if [ -d "${USR_CACHE_DIR}" ] ; then
25-
rm -Rf "${USR_CACHE_DIR}"
26-
fi
21+
foobar package-lock.json serverless.yml.bak slimPatterns.yml "${USR_CACHE_DIR}"
22+
serverless-python-requirements-*.tgz
23+
git checkout serverless.yml
2724
cd ../..
2825
if [ -d "tests/base with a space" ] ; then
2926
rm -Rf "tests/base with a space"

0 commit comments

Comments
 (0)