Commit 055ddefa authored by Tatuya Kamada's avatar Tatuya Kamada

stack/erp5: Add faketime for tests.

Hand-made merge based on the following commit.

commit eb517ef0
Author: Yusei Tahara <yusei@nexedi.com>
Date:   Fri Feb 22 15:11:15 2019 +0900

    Add faketime for tests.
parent cc6f7c4d
...@@ -7,6 +7,7 @@ extends = ...@@ -7,6 +7,7 @@ extends =
ztk-versions.cfg ztk-versions.cfg
zope-versions.cfg zope-versions.cfg
buildout.hash.cfg buildout.hash.cfg
../../component/faketime/buildout.cfg
../../component/fonts/buildout.cfg ../../component/fonts/buildout.cfg
../../component/git/buildout.cfg ../../component/git/buildout.cfg
../../component/ghostscript/buildout.cfg ../../component/ghostscript/buildout.cfg
...@@ -94,6 +95,8 @@ parts += ...@@ -94,6 +95,8 @@ parts +=
# jupyter # jupyter
jupyter-notebook-initialized-scripts jupyter-notebook-initialized-scripts
# faketime
faketime
# override instance-jupyter-notebook not to render into default template.cfg # override instance-jupyter-notebook not to render into default template.cfg
[instance-jupyter-notebook] [instance-jupyter-notebook]
...@@ -178,6 +181,7 @@ context = ...@@ -178,6 +181,7 @@ context =
key dcron_location dcron:location key dcron_location dcron:location
key default_cloudooo_url_list erp5-defaults:cloudooo-connection-url-list key default_cloudooo_url_list erp5-defaults:cloudooo-connection-url-list
key erp5_location erp5:location key erp5_location erp5:location
key faketime_location faketime:location
key findutils_location findutils:location key findutils_location findutils:location
key gzip_location gzip:location key gzip_location gzip:location
key xz_utils_location xz-utils:location key xz_utils_location xz-utils:location
......
...@@ -70,7 +70,7 @@ md5sum = b95084ae9eed95a68eada45e28ef0c04 ...@@ -70,7 +70,7 @@ md5sum = b95084ae9eed95a68eada45e28ef0c04
[template] [template]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = 3f7b28085ceff321a3cb785db60f7c3e md5sum = ab32dc2a5c6d9dd68ffd0f2cc58061bd
[template-erp5] [template-erp5]
filename = instance-erp5.cfg.in filename = instance-erp5.cfg.in
...@@ -86,7 +86,7 @@ md5sum = 0ac4b74436f554cd677f19275d18d880 ...@@ -86,7 +86,7 @@ md5sum = 0ac4b74436f554cd677f19275d18d880
[template-zope] [template-zope]
filename = instance-zope.cfg.in filename = instance-zope.cfg.in
md5sum = 90c67d5a86a42cb0dd00e45fd099b1c2 md5sum = b220d2bf00d71fc7fa38e00d344cd9dd
[template-balancer] [template-balancer]
filename = instance-balancer.cfg.in filename = instance-balancer.cfg.in
......
...@@ -472,7 +472,7 @@ context = ...@@ -472,7 +472,7 @@ context =
{% else -%} {% else -%}
[{{ section('run-unit-test-userhosts-wrapper') }}] [{{ section('run-unit-test-userhosts-wrapper') }}]
<= userhosts-wrapper-base <= userhosts-wrapper-base
wrapped-command-line = ${runUnitTest:wrapper-path} wrapped-command-line = {{ parameter_dict['faketime'] }}/bin/faketime "2057/01/03 00:00:00" ${runUnitTest:wrapper-path}
wrapper-path = ${buildout:bin-directory}/runUnitTest wrapper-path = ${buildout:bin-directory}/runUnitTest
[{{ section('run-test-suite-userhosts-wrapper') }}] [{{ section('run-test-suite-userhosts-wrapper') }}]
......
...@@ -127,6 +127,7 @@ extra-path-list = {{ dumps(extra_path_list) }} ...@@ -127,6 +127,7 @@ extra-path-list = {{ dumps(extra_path_list) }}
matplotlibrc = {{ matplotlibrc_location }} matplotlibrc = {{ matplotlibrc_location }}
erp5-location = {{ erp5_location }} erp5-location = {{ erp5_location }}
egg-interpreter = {{egg_interpreter}} egg-interpreter = {{egg_interpreter}}
faketime = {{ faketime_location }}
erp5-kernel-location = {{ erp5_kernel_location }} erp5-kernel-location = {{ erp5_kernel_location }}
erp5-kernel-filename = {{ erp5_kernel_filename }} erp5-kernel-filename = {{ erp5_kernel_filename }}
kernel-json-location = {{ kernel_json_location }} kernel-json-location = {{ kernel_json_location }}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment