Skip to content

Commit

Permalink
Solve bug in python test.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jan 29, 2020
1 parent 748e156 commit ad806b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RUN cd / \

COPY tests/scripts/ /scripts/

COPY tests/node/test.js /scripts/
COPY tests/python/script.py /scripts/

ARG CACHE_INVALIDATE

Expand All @@ -50,12 +50,9 @@ RUN export LOADER_SCRIPT_PATH="/scripts/" \
&& export DETOUR_LIBRARY_PATH="${METACALL_PATH}/lib" \
&& export PORT_LIBRARY_PATH="${METACALL_PATH}/lib" \
&& export CONFIGURATIONS_PATH="${METACALL_PATH}/configurations/global.json" \
&& printf 'load py test.py\ninspect\ncall test()\nexit' | ${METACALL_PATH}/metacallcli \
&& printf 'load py script.py\ninspect\ncall test()\nexit' | ${METACALL_PATH}/metacallcli \
| grep \
-e 'Hello World' \
&& cat /root/metacall.log

# TODO: The script is not being loaded properly, investigate why
# \
# | grep \
# -e 'Hello World'

ENTRYPOINT ["sh", "-c"]
File renamed without changes.

0 comments on commit ad806b1

Please sign in to comment.