Skip to content

Commit

Permalink
Fix test script
Browse files Browse the repository at this point in the history
  • Loading branch information
pomo-mondreganto committed Nov 24, 2024
1 parent 8d89971 commit 9255a42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ build-image:
test-image:
@for cmd in $(NEED_COMMANDS) ; do \
echo -n "checking for command $$cmd... "; \
if docker run --rm --entrypoint /bin/bash "${IMAGE}" which "$$cmd" >/dev/null; then \
if docker run --rm "${IMAGE}" which "$$cmd" >/dev/null; then \
echo "ok"; \
else \
echo "Command $$cmd not found in image"; \
Expand All @@ -60,10 +60,10 @@ test-image:

@for pkg in $(NEED_PACKAGES) ; do \
echo -n "checking for python package $$pkg... "; \
if docker run --rm --entrypoint /bin/bash "${IMAGE}" -c "python3 -c 'import $$pkg'" >/dev/null; then \
if docker run --rm --entrypoint bash "${IMAGE}" -c "python3 -c 'import $$pkg'" >/dev/null; then \
echo "ok"; \
else \
echo "Command $$cmd not found in image"; \
echo "Command $$pkg not found in image"; \
exit 1; \
fi \
done
Expand Down

0 comments on commit 9255a42

Please sign in to comment.