Commit 6e7e71e9 authored by Brad King's avatar Brad King
Browse files

Teach CTest.UpdateGIT test to fake file timestamp

We wrap the git executable in a shell script that touches one source
file after 'git pull'.  This makes the file newer than the index even
though it has not actually changed.  If CTest does not refresh the index
properly then the test will fail with a bogus modified file.
parent 8bd23186
......@@ -25,6 +25,12 @@ set(AUTHOR_CONFIG "[user]
message("Creating test directory...")
configure_file(${src}/ ${TOP}/ @ONLY)
set(GIT ${TOP}/
# Create the repository.
message("Creating repository...")
if test "x$1" = "xpull"; then
"@GIT@" "$@" && sleep 1 && touch foo.txt
exec "@GIT@" "$@"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment