[PATCH stalld 03/36] tests/helpers: Remove duplicate log() function
Wander Lairson Costa <[email protected]>
| Newsgroups | org.kernel.vger.linux-rt-users |
|---|---|
| Message-ID | <[email protected]> |
test_helpers.sh defines log() twice: the full version at line 43 with journal correlation via logger, and a simplified version at line 895 that only echoes to stdout. In bash, the second definition shadows the first, so all tests were silently losing journal logging that enables correlating test activities with stalld behavior in journalctl. Remove the duplicate to restore journal logging for all tests. Signed-off-by: Wander Lairson Costa <[email protected]> --- tests/helpers/test_helpers.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/helpers/test_helpers.sh b/tests/helpers/test_helpers.sh index 5a384a7..3fa8d07 100755 --- a/tests/helpers/test_helpers.sh +++ b/tests/helpers/test_helpers.sh @@ -891,11 +891,6 @@ start_stalld_with_backend() { # Consolidated helper functions (previously duplicated across tests) # -# Logging with timestamp (used by many functional tests) -log() { - echo "[$(date +'%H:%M:%S')] $*" -} - # Get scheduling policy (0=OTHER, 1=FIFO, 2=RR, 6=DEADLINE) get_sched_policy() { local pid=$1 -- 2.53.0