mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
tests: compatibility fix.
'touch -d *' doesn't work on Mac OS X. In order to prevent this from occuring again, a check for the case is added to 'check-code.py'.
This commit is contained in:
parent
5d9fc42983
commit
8e99053714
@ -63,6 +63,7 @@ testpats = [
|
||||
(r'export.*=', "don't export and assign at once"),
|
||||
('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"),
|
||||
(r'^source\b', "don't use 'source', use '.'"),
|
||||
(r'touch -d', "don't use 'touch -d', use 'touch -t' instead"),
|
||||
]
|
||||
|
||||
testfilters = [
|
||||
|
@ -221,7 +221,7 @@ empty repo
|
||||
[255]
|
||||
old file -- date clamped to 1980
|
||||
|
||||
$ touch -d 1975-01-01 old
|
||||
$ touch -t 19750101 old
|
||||
$ hg add old
|
||||
$ hg commit -m old
|
||||
$ hg archive ../old.zip
|
||||
|
Loading…
Reference in New Issue
Block a user