Skip to content

Commit

Permalink
Updated TribitsHelloWorld_config_git_version_single_repo_one_parent t…
Browse files Browse the repository at this point in the history
…est (#597)

Updated mockprogram inputs and outputs to be more specific about which
commit message is being outputted.
  • Loading branch information
achauphan committed Jan 12, 2024
1 parent fd3a2e9 commit be3a494
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/core/ExamplesUnitTests/TribitsHelloWorld_Tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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. <[email protected]>"
"This is the git commit summary line"
"This is the HEAD commit summary line"
ALWAYS_FAIL_ON_NONZERO_RETURN

TEST_4
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*** Base Git Repo: TribitsHelloWorld
a1234tgb [Thu Sep 21 19:19:18 2023 -0400] <[email protected]>
This is the git commit summary line
This is the HEAD commit summary line
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ MOCK_PROGRAM_RETURN: 0
MOCK_PROGRAM_OUTPUT: a1234tgb [Thu Sep 21 19:19:18 2023 -0400] <[email protected]>
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

0 comments on commit be3a494

Please sign in to comment.