From c7b79c793332f78bf1fbc9aa995fe4db259e0387 Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Tue, 9 Jul 2024 13:00:34 +0200 Subject: [PATCH] Debug logging --- .github/workflows/test.yml | 4 ++-- test/test.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fcb5790..e32fff2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -88,5 +88,5 @@ jobs: PYTHONUNBUFFERED: 1 run: | sudo chown 0:0 jlmkr.py ./test/test-jlmkr - sudo bash ./test/test-jlmkr || sudo journalctl - sudo ./test/test.sh || sudo journalctl + sudo bash ./test/test-jlmkr + sudo ./test/test.sh diff --git a/test/test.sh b/test/test.sh index 04a2aef..2dd6896 100755 --- a/test/test.sh +++ b/test/test.sh @@ -9,4 +9,6 @@ set -euo pipefail # TODO: test jlmkr.py from inside another working directory, with a relative path to a config file to test if it uses the config file (and doesn't look for it relative to the jlmkr.py file itself) ./jlmkr.py create --start --config=./templates/docker/config test +./jlmkr.py exec test journalctl +./jlmkr.py exec test systemctl status dockerd ./jlmkr.py exec test docker run hello-world