From 7f0fd2b004a566482c59ce9cba9254494c19b61c Mon Sep 17 00:00:00 2001 From: Shamser Ahmed Date: Fri, 24 May 2024 09:47:33 +0100 Subject: [PATCH] unittest verbose=true Signed-off-by: Shamser Ahmed --- .github/workflows/test-unit-gh_runner.yml | 2 +- testing/unittests/dalitests.cpp | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-unit-gh_runner.yml b/.github/workflows/test-unit-gh_runner.yml index 69928aa0811..285de32052a 100644 --- a/.github/workflows/test-unit-gh_runner.yml +++ b/.github/workflows/test-unit-gh_runner.yml @@ -54,7 +54,7 @@ jobs: run: | export LANG="en_US.UTF-8" sudo update-locale - sudo /opt/HPCCSystems/bin/unittests + /opt/HPCCSystems/bin/unittests - name: unittests-logs-artifact if: ${{ failure() || cancelled() }} diff --git a/testing/unittests/dalitests.cpp b/testing/unittests/dalitests.cpp index b4d7aee96d1..d922f70b132 100644 --- a/testing/unittests/dalitests.cpp +++ b/testing/unittests/dalitests.cpp @@ -61,8 +61,13 @@ void daliClientInit() // Only initialise on first pass if (initCounter != 0) return; - InitModuleObjects(); - user->set("user", "passwd"); + static bool modulesInitialized = false; + if (!modulesInitialized) + { + InitModuleObjects(); + user->set("user", "passwd"); + modulesInitialized = true; + } // Connect to local Dali SocketEndpoint ep; ep.set(".", 7070); @@ -82,12 +87,11 @@ void daliClientEnd() else if (1 == initCounter) // Only destroy on last pass { // Cleanup - releaseAtoms(); + //releaseAtoms(); closedownClientProcess(); - setNodeCaching(false); + //setNodeCaching(false); } - else - initCounter--; + initCounter--; } interface IChecker