##// END OF EJS Templates
tests: use `f --newer` instead of `stat -c` in test-fix.t...
Augie Fackler -
r37611:314f39e5 default
parent child Browse files
Show More
@@ -492,11 +492,11 b' write back to the file, so for example t'
492 $ printf "NO FIX NEEDED\n" > foo.whole
492 $ printf "NO FIX NEEDED\n" > foo.whole
493 $ hg add
493 $ hg add
494 adding foo.whole
494 adding foo.whole
495 $ OLD_MTIME=`stat -c %Y foo.whole`
495 $ cp foo.whole foo.whole.orig
496 $ sleep 1 # mtime has a resolution of one second.
496 $ sleep 2 # mtime has a resolution of one or two seconds.
497 $ hg fix --working-dir
497 $ hg fix --working-dir
498 $ NEW_MTIME=`stat -c %Y foo.whole`
498 $ f foo.whole --newer foo.whole.orig
499 $ test $OLD_MTIME = $NEW_MTIME
499 foo.whole: older than foo.whole.orig
500
500
501 $ cd ..
501 $ cd ..
502
502
General Comments 0
You need to be logged in to leave comments. Login now