Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 39561bb

Browse files
committed
Do chmod recursively and only drop to read (instead of no) permission
1 parent 607e857 commit 39561bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

circle/test.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ for version in ${PLOTLY_PYTHON_VERSIONS[@]}; do
3131
echo "${HOME}"
3232
echo "${PLOTLY_CONFIG_DIR}"
3333

34-
# test that it imports when you don't have file permissions
35-
chmod 000 ${PLOTLY_CONFIG_DIR} && python -c "import plotly" ||
36-
error_exit "${LINENO}: permissions test 000 on .plotly dir failed"
34+
# test that it imports when you don't have write permissions
35+
chmod -R 400 ${PLOTLY_CONFIG_DIR} && python -c "import plotly" ||
36+
error_exit "${LINENO}: permissions test 400 on .plotly dir failed"
3737

38-
# test that setting permissions will work for import (and tests)
39-
chmod 666 ${PLOTLY_CONFIG_DIR} && python -c "import plotly" ||
40-
error_exit "${LINENO}: permissions test 666 on .plotly dir failed"
38+
# test that setting write permissions will work for import (and tests)
39+
chmod -R 600 ${PLOTLY_CONFIG_DIR} && python -c "import plotly" ||
40+
error_exit "${LINENO}: permissions test 600 on .plotly dir failed"
4141

4242
echo "running tests for Python ${version} as user '$(whoami)'"
4343
if [ ${version:0:3} == '2.7' ]

0 commit comments

Comments
 (0)