diff --git a/libs/test/foolproof/scaffold/Provisioning.hpp b/libs/test/foolproof/scaffold/Provisioning.hpp index 08a70bcad..6b75b94b7 100644 --- a/libs/test/foolproof/scaffold/Provisioning.hpp +++ b/libs/test/foolproof/scaffold/Provisioning.hpp @@ -843,6 +843,7 @@ class RunClient { BOOST_REQUIRE_MESSAGE(cwd != nullptr, "The working directory is non-null"); auto client_path = find_ecflow_client_path(); + ECF_TEST_DBG("----> found client at " << client_path.string()); BOOST_REQUIRE_MESSAGE(!client_path.empty(), "The ecflow client path is non-empty"); BOOST_REQUIRE_MESSAGE(fs::exists(client_path), "The ecflow client executable exist at " << client_path); @@ -858,8 +859,15 @@ class RunClient { options.push_back(option); } + ECF_TEST_DBG("----> using options:"); + for (const auto& option : options) { + ECF_TEST_DBG(" " << option); + } + auto ecflow_client = Process(client_path, options, cwd->path()); + ECF_TEST_DBG("----> process started with pid: " << ecflow_client.pid()); + auto print = [](const auto& executable, const auto& options) { std::string buffer = "[ " + pretty_print_path(executable) + (options.empty() ? "" : ", "); for (size_t i = 0; i < options.size(); ++i) { @@ -871,6 +879,8 @@ class RunClient { return buffer + " ]"; }; + ECF_TEST_DBG("----> waiting next!"); + if (auto r = ecflow_client.wait(); r == 0) { ECF_TEST_DBG("Executed " << print(client_path, options)); ECF_TEST_DBG(" result: [OK]"); @@ -1105,6 +1115,7 @@ class MakeServer { std::chrono::seconds timeout = std::chrono::seconds(10)) { auto start = std::chrono::system_clock::now(); for (;;) { + ECF_TEST_DBG("----> pinging!!!"); auto r = RunClient{}.with(host).with(port).with(cwd).execute(RunClient::CommandPing{}); if (r.ok()) { // Important: this checks that the client finished with SUCCESS!