diff options
Diffstat (limited to 'test/buildtool/build_engine/base_maps/test_repo.hpp')
-rw-r--r-- | test/buildtool/build_engine/base_maps/test_repo.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/buildtool/build_engine/base_maps/test_repo.hpp b/test/buildtool/build_engine/base_maps/test_repo.hpp index 1269d2da..82dd1fc5 100644 --- a/test/buildtool/build_engine/base_maps/test_repo.hpp +++ b/test/buildtool/build_engine/base_maps/test_repo.hpp @@ -28,8 +28,10 @@ static auto const kJsonTreeId = [[nodiscard]] static inline auto CreateTestRepo() -> std::optional<std::filesystem::path> { - auto repo_path = GetTestDir() / "test_repo" / - std::filesystem::path{std::tmpnam(nullptr)}.filename(); + static std::atomic<int> counter{}; + auto repo_path = + GetTestDir() / "test_repo" / + std::filesystem::path{std::to_string(counter++)}.filename(); auto cmd = fmt::format( "git clone --bare {} {}", kBundlePath.string(), repo_path.string()); if (std::system(cmd.c_str()) == 0) { |