Skip to content

Commit f7d0e75

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

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

test.bats

+3-6
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)