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

Skip to content

Commit 607e857

Browse files
committed
Tweak to get permissions to work + more info.
1 parent fda8c1d commit 607e857

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

circle/test.sh

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

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

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

40-
echo "running tests"
42+
echo "running tests for Python ${version} as user '$(whoami)'"
4143
if [ ${version:0:3} == '2.7' ]
4244
then
4345
nosetests -xv plotly/tests/test_core \

0 commit comments

Comments
 (0)