From b78a11a4945ba2669379a981356ab52a7da30842 Mon Sep 17 00:00:00 2001 From: Constantin Hong Date: Mon, 15 Jan 2024 20:16:46 +0900 Subject: [PATCH] test/chore: Add STDOUT STDERR loguru log test --- .github/workflows/test-only.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-only.yml b/.github/workflows/test-only.yml index 035e68a8f94..8655964f1d4 100644 --- a/.github/workflows/test-only.yml +++ b/.github/workflows/test-only.yml @@ -112,7 +112,10 @@ jobs: curl -s -g -6 "http://[::1]:5556"|grep -q checkbox-uuid # Check whether TRACE log is enabled. - docker logs test-changedetectionio 2>&1 | grep 'TRACE log is enabled' || exit 1 + # Also, check whether TRACE is came from STDERR + docker logs test-changedetectionio 2>&1 1>/dev/null | grep 'TRACE log is enabled' || exit 1 + # Check whether DEBUG is came from STDOUT + docker logs test-changedetectionio 2>/dev/null | grep 'DEBUG' || exit 1 docker kill test-changedetectionio