Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ RUN set -xe; \
mv /tmp/alpine/bin/* /usr/local/bin; \
\
{ \
echo 'export PS1="\u@${WODBY_APP_NAME:-python}.${WODBY_ENVIRONMENT_NAME:-container}:\w $ "'; \
echo 'export PS1="\u@$(hostname):\w $ "'; \
echo "export PATH=${PATH}"; \
} | tee /home/wodby/.shrc; \
\
Expand Down
7 changes: 7 additions & 0 deletions tests/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ if [[ -n "${DEBUG}" ]]; then
set -x
fi

source /home/wodby/.shrc
expected_prompt='\u@'"$(hostname)"':\w $ '
if [[ "${PS1}" != "${expected_prompt}" ]]; then
echo "Unexpected shell prompt: ${PS1}"
exit 1
fi

if [[ "${PYTHON_VERSION}" == 2* ]]; then
python -V 2>&1 | grep -q "${PYTHON_VERSION}"
django_msg="It worked!"
Expand Down