Merge branch 'ps/test-chmtime-get'

Test cleanup.

* ps/test-chmtime-get:
  t/helper: 'test-chmtime (--get|-g)' to print only the mtime
This commit is contained in:
Junio C Hamano
2018-04-25 13:29:00 +09:00
10 changed files with 63 additions and 42 deletions

View File

@ -192,7 +192,7 @@ test_expect_success \
'validate file modification time' \
'mkdir extract &&
"$TAR" xf b.tar -C extract a/a &&
test-tool chmtime -v +0 extract/a/a |cut -f 1 >b.mtime &&
test-tool chmtime --get extract/a/a >b.mtime &&
echo "1117231200" >expected.mtime &&
test_cmp expected.mtime b.mtime'