From ee6f54124360d8a72b9b545dcc581f3c80d3c8a9 Mon Sep 17 00:00:00 2001 From: Sascha Roloff Date: Mon, 11 Jul 2022 19:55:10 +0200 Subject: Modified artifact digest to provide wire digest on demand --- test/buildtool/execution_engine/executor/executor.test.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'test/buildtool/execution_engine/executor/executor.test.cpp') diff --git a/test/buildtool/execution_engine/executor/executor.test.cpp b/test/buildtool/execution_engine/executor/executor.test.cpp index 3e56909e..e055dfd7 100755 --- a/test/buildtool/execution_engine/executor/executor.test.cpp +++ b/test/buildtool/execution_engine/executor/executor.test.cpp @@ -63,9 +63,11 @@ class TestResponse : public IExecutionResponse { // collect files and store them for (auto const& path : config_.execution.outputs) { try { - artifacts.emplace(path, - Artifact::ObjectInfo{ArtifactDigest{path, 0}, - ObjectType::File}); + artifacts.emplace( + path, + Artifact::ObjectInfo{ + ArtifactDigest{path, 0, /*is_tree=*/false}, + ObjectType::File}); } catch (...) { return {}; } @@ -170,8 +172,8 @@ static void SetupConfig(std::filesystem::path const& ws) { SetupConfig(ws); auto const local_cpp_desc = ArtifactDescription{path{"local.cpp"}, ""}; - auto const known_cpp_desc = - ArtifactDescription{ArtifactDigest{"known.cpp", 0}, ObjectType::File}; + auto const known_cpp_desc = ArtifactDescription{ + ArtifactDigest{"known.cpp", 0, /*is_tree=*/false}, ObjectType::File}; auto const test_action_desc = ActionDescription{ {"output1.exe", "output2.exe"}, -- cgit v1.2.3