Skip to content
Snippets Groups Projects
Commit a23538ec authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

test: use various trick to speedup execution

This should waste less time when running test.
parent ef53faf9
No related branches found
No related tags found
1 merge request!37general improvements
......@@ -256,13 +256,10 @@
# post-processing.
time_cmd.append("--ignore-failure")
if not debug:
time_cmd.append("--min-runs")
time_cmd.append("3")
else:
if debug:
time_cmd.append("--runs")
time_cmd.append("2")
if prepare is not None:
prepare = (
f'echo "### starting prepare ###" ; date ; {prepare}'
)
......@@ -263,9 +260,17 @@
time_cmd.append("--runs")
time_cmd.append("2")
if prepare is not None:
prepare = (
f'echo "### starting prepare ###" ; date ; {prepare}'
)
elif os.environ["RUNTESTDIR"]:
# speed up the test run
time_cmd.append("--runs")
# would use 1 but tht make "standard-deviation" entry disappear.
time_cmd.append("2")
else:
time_cmd.append("--min-runs")
time_cmd.append("3")
if prepare is not None:
if not bool(self.get_var("simple-command.no-set-builtin")):
......
This diff is collapsed.
export PIP_DISABLE_PIP_VERSION_CHECK=1
export MERCURIAL_REPO_URL="${RUNTESTDIR}/../"
unset HGWITHRUSTEXT
cat << EOF >> $HGRCPATH
[ui]
quietbookmarkmove = no
EOF
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment