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

Skip to content

Commit dc38f16

Browse files
committed
sudo make me a sandwich.
1 parent 39561bb commit dc38f16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

circle/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ for version in ${PLOTLY_PYTHON_VERSIONS[@]}; do
3232
echo "${PLOTLY_CONFIG_DIR}"
3333

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

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

4242
echo "running tests for Python ${version} as user '$(whoami)'"

0 commit comments

Comments
 (0)