Fix xtests bug where git3 file date kept changing

This commit is contained in:
Benjamin Sago 2020-10-17 21:25:49 +01:00
parent 61c5df7c11
commit ef7bb43dbb
2 changed files with 2 additions and 4 deletions

View File

@ -323,9 +323,7 @@ git init >/dev/null
ln -s aaa/aaa/a b
# This normally fails with:
# touch: cannot touch '/testcases/git3/b': No such file or directory
# but thats expected (the file deliberately does not exist)
find "$TEST_ROOT/git3" -exec touch {} -t $FIXED_DATE \; 2>/dev/null
find "$TEST_ROOT/git3" -exec touch {} -h -t $FIXED_DATE \;
sudo chown $FIXED_USER:$FIXED_USER -R "$TEST_ROOT/git3"

View File

@ -1 +1 @@
lrwxrwxrwx 9 cassowary 17 Oct 14:27 -N b -> aaa/aaa/a
lrwxrwxrwx 9 cassowary  1 Jan 12:34 -N b -> aaa/aaa/a