From 772e62420f0abbb28abb64c68ec6e8f4423e04c1 Mon Sep 17 00:00:00 2001 From: Peter Hristov Date: Thu, 2 Mar 2023 21:05:25 +0100 Subject: [PATCH 1/2] Replace dashes by underscores to avoid problems in the creation of local directories --- CCDB/test/testCcdbApi.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CCDB/test/testCcdbApi.cxx b/CCDB/test/testCcdbApi.cxx index 40efa89b848bb..9d04392cc550d 100644 --- a/CCDB/test/testCcdbApi.cxx +++ b/CCDB/test/testCcdbApi.cxx @@ -63,6 +63,8 @@ struct Fixture { char hostname[_POSIX_HOST_NAME_MAX]; gethostname(hostname, _POSIX_HOST_NAME_MAX); basePath = string("Test/TestCcdbApi/") + hostname + "/pid" + getpid() + "/"; + // Replace dashes by underscores to avoid problems in the creation of local directories + std::replace(basePath.begin(), basePath.end(), '-','_'); cout << "Path we will use in this test suite : " + basePath << endl; } ~Fixture() From 7a926c29b4eff7a9726e3bb02c6156c0a4268feb Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Thu, 2 Mar 2023 20:07:21 +0000 Subject: [PATCH 2/2] Please consider the following formatting changes --- CCDB/test/testCcdbApi.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CCDB/test/testCcdbApi.cxx b/CCDB/test/testCcdbApi.cxx index 9d04392cc550d..f6c47a8794318 100644 --- a/CCDB/test/testCcdbApi.cxx +++ b/CCDB/test/testCcdbApi.cxx @@ -64,7 +64,7 @@ struct Fixture { gethostname(hostname, _POSIX_HOST_NAME_MAX); basePath = string("Test/TestCcdbApi/") + hostname + "/pid" + getpid() + "/"; // Replace dashes by underscores to avoid problems in the creation of local directories - std::replace(basePath.begin(), basePath.end(), '-','_'); + std::replace(basePath.begin(), basePath.end(), '-', '_'); cout << "Path we will use in this test suite : " + basePath << endl; } ~Fixture()