Skip to content

Commit

Permalink
Minor cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Jan 28, 2016
1 parent a27de35 commit a1da487
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions test_dropbox.sh
Expand Up @@ -8,10 +8,10 @@ set -x
# OMERO_USER OMERO_PASS PREFIX

FILENAME=$(date +%Y%m%d-%H%M%S-%N).fake
docker exec -u omero $PREFIX-master sh -c \
docker exec $PREFIX-master sh -c \
"mkdir -p /OMERO/DropBox/root && touch /OMERO/DropBox/root/$FILENAME"

echo "Checking for imported DropBox image $FILENAME "
echo -n "Checking for imported DropBox image $FILENAME "
# Retry for 4 mins
i=0
result=
Expand All @@ -24,6 +24,7 @@ while [ $i -lt 60 ]; do
exit 0
fi
if [ "$result" != "0,0" ]; then
echo
echo "Unexpected query result: $result"
exit 2
fi
Expand Down
4 changes: 2 additions & 2 deletions test_login.sh
Expand Up @@ -7,7 +7,7 @@ set -x
# Must be exported by the caller:
# OMERO_USER OMERO_PASS

WEB_PORT=$(docker inspect --format='{{(index (index .NetworkSettings.Ports "8080/tcp") 0).HostPort}}' omero-grid-test-web)
WEB_PORT=$(docker inspect --format='{{(index (index .NetworkSettings.Ports "8080/tcp") 0).HostPort}}' $PREFIX-web)

LOGIN_URL="http://localhost:$WEB_PORT/webclient/login/"
SERVER="1"
Expand Down Expand Up @@ -36,7 +36,7 @@ if [ -z "$csrf_token" ]; then
fi

echo "CSRF token: $csrf_token"
echo -n "Attempting to login"
echo -n "Attempting to login "
# Retry for 2 mins
DJANGO_TOKEN="csrfmiddlewaretoken=$csrf_token"
i=0
Expand Down

0 comments on commit a1da487

Please sign in to comment.