Mercurial > hg-stable
changeset 32448:f94d7e3e46a0
devel: activate default-date in tests
It will make writing future tests more easier for everyone as we won't need to
glob dates anymore in tests.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 22 May 2017 16:59:57 +0200 |
parents | 3e2e179ef031 |
children | 08d02c1d7e67 |
files | tests/run-tests.py tests/test-basic.t tests/test-commandserver.t tests/test-commit.t |
diffstat | 4 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Fri May 19 12:18:25 2017 +0200 +++ b/tests/run-tests.py Mon May 22 16:59:57 2017 +0200 @@ -956,6 +956,7 @@ hgrc.write(b'tag = -d "0 0"\n') hgrc.write(b'[devel]\n') hgrc.write(b'all-warnings = true\n') + hgrc.write(b'default-date = 0 0\n') hgrc.write(b'[largefiles]\n') hgrc.write(b'usercache = %s\n' % (os.path.join(self._testtmp, b'.cache/largefiles')))
--- a/tests/test-basic.t Fri May 19 12:18:25 2017 +0200 +++ b/tests/test-basic.t Mon May 22 16:59:57 2017 +0200 @@ -6,6 +6,7 @@ defaults.shelve=--date "0 0" defaults.tag=-d "0 0" devel.all-warnings=true + devel.default-date=0 0 largefiles.usercache=$TESTTMP/.cache/largefiles (glob) ui.slash=True ui.interactive=False
--- a/tests/test-commandserver.t Fri May 19 12:18:25 2017 +0200 +++ b/tests/test-commandserver.t Mon May 22 16:59:57 2017 +0200 @@ -192,6 +192,7 @@ defaults.shelve=--date "0 0" defaults.tag=-d "0 0" devel.all-warnings=true + devel.default-date=0 0 largefiles.usercache=$TESTTMP/.cache/largefiles ui.slash=True ui.interactive=False
--- a/tests/test-commit.t Fri May 19 12:18:25 2017 +0200 +++ b/tests/test-commit.t Mon May 22 16:59:57 2017 +0200 @@ -120,7 +120,7 @@ An empty date was interpreted as epoch origin $ echo foo >> foo - $ hg commit -d '' -m commit-no-date + $ hg commit -d '' -m commit-no-date --config devel.default-date= $ hg tip --template '{date|isodate}\n' | grep '1970' [1]