Quellcode durchsuchen

Fix xtests bug where git3 file date kept changing

Benjamin Sago vor 5 Jahren
Ursprung
Commit
ef7bb43dbb
2 geänderte Dateien mit 2 neuen und 4 gelöschten Zeilen
  1. 1 3
      devtools/dev-create-test-filesystem.sh
  2. 1 1
      xtests/outputs/git3_long.ansitxt

+ 1 - 3
devtools/dev-create-test-filesystem.sh

@@ -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 that’s 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"
 
 

+ 1 - 1
xtests/outputs/git3_long.ansitxt

@@ -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