From be3a494617a3c80f935eadd4939f5c31b959c55e Mon Sep 17 00:00:00 2001 From: Anderson Chauphan Date: Fri, 12 Jan 2024 13:19:33 -0700 Subject: [PATCH] Updated TribitsHelloWorld_config_git_version_single_repo_one_parent test (#597) Updated mockprogram inputs and outputs to be more specific about which commit message is being outputted. --- test/core/ExamplesUnitTests/TribitsHelloWorld_Tests.cmake | 4 ++-- ...tsHelloWorldRepoVersion.single_repo_one_parent_version.txt | 2 +- .../mockprogram_inout.single_repo_one_parent_version.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/core/ExamplesUnitTests/TribitsHelloWorld_Tests.cmake b/test/core/ExamplesUnitTests/TribitsHelloWorld_Tests.cmake index 35aa9c4e3..696e1dd50 100644 --- a/test/core/ExamplesUnitTests/TribitsHelloWorld_Tests.cmake +++ b/test/core/ExamplesUnitTests/TribitsHelloWorld_Tests.cmake @@ -70,7 +70,7 @@ tribits_add_advanced_test( TribitsHelloWorld_config_git_version_single_repo_one_ ../TribitsHelloWorld PASS_REGULAR_EXPRESSION_ALL "a1234tgb .Thu Sep 21 19:19:18 2023 -0400. " - "This is the git commit summary line" + "This is the HEAD commit summary line" ALWAYS_FAIL_ON_NONZERO_RETURN TEST_4 @@ -83,7 +83,7 @@ tribits_add_advanced_test( TribitsHelloWorld_config_git_version_single_repo_one_ # # * The above directory structure is: # -# TribitsHelloWorld_config_git_version/ +# TribitsHelloWorld_config_git_version_single_repo_one_parent/ # TribitsHelloWorld/ # .git/ # .mockprogram_inout.txt diff --git a/test/core/ExamplesUnitTests/configure_git_mockprogram_files/TribitsHelloWorldRepoVersion.single_repo_one_parent_version.txt b/test/core/ExamplesUnitTests/configure_git_mockprogram_files/TribitsHelloWorldRepoVersion.single_repo_one_parent_version.txt index df4d477e6..a4e411d90 100644 --- a/test/core/ExamplesUnitTests/configure_git_mockprogram_files/TribitsHelloWorldRepoVersion.single_repo_one_parent_version.txt +++ b/test/core/ExamplesUnitTests/configure_git_mockprogram_files/TribitsHelloWorldRepoVersion.single_repo_one_parent_version.txt @@ -1,3 +1,3 @@ *** Base Git Repo: TribitsHelloWorld a1234tgb [Thu Sep 21 19:19:18 2023 -0400] -This is the git commit summary line +This is the HEAD commit summary line diff --git a/test/core/ExamplesUnitTests/configure_git_mockprogram_files/mockprogram_inout.single_repo_one_parent_version.txt b/test/core/ExamplesUnitTests/configure_git_mockprogram_files/mockprogram_inout.single_repo_one_parent_version.txt index 9006e223b..f60bdeb4b 100644 --- a/test/core/ExamplesUnitTests/configure_git_mockprogram_files/mockprogram_inout.single_repo_one_parent_version.txt +++ b/test/core/ExamplesUnitTests/configure_git_mockprogram_files/mockprogram_inout.single_repo_one_parent_version.txt @@ -6,4 +6,4 @@ MOCK_PROGRAM_RETURN: 0 MOCK_PROGRAM_OUTPUT: a1234tgb [Thu Sep 21 19:19:18 2023 -0400] MOCK_PROGRAM_INPUT: log -1 a1234tgbhyujkliu126sl12123s --pretty=format:%s MOCK_PROGRAM_RETURN: 0 -MOCK_PROGRAM_OUTPUT: This is the git commit summary line +MOCK_PROGRAM_OUTPUT: This is the HEAD commit summary line