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

Skip to content

Commit f0aaa75

Browse files
committed
ubuntu user apparently not the owner of .plotly dir?
1 parent dc38f16 commit f0aaa75

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

circle/test.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,19 @@ for version in ${PLOTLY_PYTHON_VERSIONS[@]}; do
3030

3131
echo "${HOME}"
3232
echo "${PLOTLY_CONFIG_DIR}"
33+
ls -l ${PLOTLY_CONFIG_DIR}
3334

3435
# test that it imports when you don't have write permissions
35-
sudo chmod -R 400 ${PLOTLY_CONFIG_DIR} && python -c "import plotly" ||
36-
error_exit "${LINENO}: permissions test 400 on .plotly dir failed"
36+
sudo chmod -R 444 ${PLOTLY_CONFIG_DIR} && python -c "import plotly" ||
37+
error_exit "${LINENO}: permissions test 444 on .plotly dir failed"
38+
39+
ls -l ${PLOTLY_CONFIG_DIR}
3740

3841
# test that setting write permissions will work for import (and tests)
39-
sudo chmod -R 600 ${PLOTLY_CONFIG_DIR} && python -c "import plotly" ||
40-
error_exit "${LINENO}: permissions test 600 on .plotly dir failed"
42+
sudo chmod -R 666 ${PLOTLY_CONFIG_DIR} && python -c "import plotly" ||
43+
error_exit "${LINENO}: permissions test 666 on .plotly dir failed"
44+
45+
ls -l ${PLOTLY_CONFIG_DIR}
4146

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

0 commit comments

Comments
 (0)