summaryrefslogtreecommitdiff
path: root/src/tox/run.py
diff options
context:
space:
mode:
authorBernát Gábor <bgabor8@bloomberg.net>2020-10-27 12:42:20 +0000
committerBernát Gábor <bgabor8@bloomberg.net>2020-10-27 15:16:39 +0000
commit09d6ce58acf64598cce082bcda914175f0bcf8b1 (patch)
treeede74ba5f01cf80ca4a0a46e978e6b1cf895efd2 /src/tox/run.py
parentfde61350973b849149e98836b30fb8d89b29ba4a (diff)
downloadtox-git-09d6ce58acf64598cce082bcda914175f0bcf8b1.tar.gz
Facilitate usage in parallel with tox 3
- working directory is renamed from .tox to .tox4 - console script is renamed from tox to tox4 - forward TERM when stdout is TTY to allow color detection for commands ran - include duration into the report (per env and overall) - fix escape characters remaining escape post replacement Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
Diffstat (limited to 'src/tox/run.py')
-rw-r--r--src/tox/run.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tox/run.py b/src/tox/run.py
index 89518f44..c6145e06 100644
--- a/src/tox/run.py
+++ b/src/tox/run.py
@@ -1,6 +1,7 @@
"""Main entry point for tox."""
import logging
import sys
+from datetime import datetime
from pathlib import Path
from typing import List, Optional, Sequence, cast
@@ -39,8 +40,10 @@ def main(args: Sequence[str]) -> int:
def setup_state(args: Sequence[str]) -> State:
"""Setup the state object of this run."""
+ start = datetime.now()
# parse CLI arguments
options = get_options(*args)
+ options[0].start = start
# parse configuration file
config = make_config(Path().cwd().absolute(), options[0].override)
# build tox environment config objects