Skip to content

Commit

Permalink
fix(systemd) fix the package remove test (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
hutchic authored Mar 16, 2020
1 parent b1c31ea commit 422adfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ endif

test: build-test-container
ifneq ($(RESTY_IMAGE_BASE),src)
KONG_PACKAGE_NAME=$(KONG_PACKAGE_NAME) \
VERBOSE=$(VERBOSE) \
KONG_VERSION=$(KONG_VERSION) \
RESTY_IMAGE_BASE=$(RESTY_IMAGE_BASE) \
Expand Down
2 changes: 1 addition & 1 deletion test/tests/01-package/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ EOD"
docker exec ${USE_TTY} systemd-ubuntu /bin/bash -c "systemctl restart kong"
sleep 5
docker exec ${USE_TTY} systemd-ubuntu /bin/bash -c "systemctl stop kong"
docker exec ${USE_TTY} systemd-ubuntu /bin/bash -c "dpkg --remove kong"
docker exec ${USE_TTY} systemd-ubuntu /bin/bash -c "dpkg --remove $KONG_PACKAGE_NAME"
docker exec ${USE_TTY} systemd-ubuntu /bin/bash -c "! test -f /etc/logrotate.d/kong"
docker exec ${USE_TTY} systemd-ubuntu /bin/bash -c "! test -f /lib/systemd/system/kong.service"
docker stop systemd-ubuntu
Expand Down

0 comments on commit 422adfe

Please sign in to comment.