Skip to content

Commit b659f7e

Browse files
committed
Fixing up tests for download cache
1 parent e31a514 commit b659f7e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test.bats

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ setup() {
77
export LC_ALL=C.UTF-8
88
export LANG=C.UTF-8
99
fi
10+
export USR_CACHE_DIR=`node -e 'console.log(require("./lib/shared").getUserCachePath())'`
1011
}
1112

1213
teardown() {
1314
rm -rf puck puck2 puck3 node_modules .serverless .requirements.zip .requirements-cache
1415
if [ -f serverless.yml.bak ]; then mv serverless.yml.bak serverless.yml; fi
15-
# Remove our items in appdirs user cache dir
16-
node -e 'require("../../lib/clean").cleanupStaticCache()'
16+
if [ -d "${USR_CACHE_DIR}" ] ; then
17+
rm -Rf "${USR_CACHE_DIR}"
18+
fi
1719
}
1820

1921
@test "py3.6 can package flask with default options" {

0 commit comments

Comments
 (0)