Merge "tox: Drop redundant injection of VIRTUAL_ENV variable"
This commit is contained in:
@@ -146,8 +146,6 @@ def _find_and_mount_path(path, partition, root_dev):
|
||||
with utils.mounted(partition) as part_path:
|
||||
yield os.path.join(part_path, path)
|
||||
else:
|
||||
# TODO(dtantsur): switch to ironic-lib instead:
|
||||
# https://review.opendev.org/c/openstack/ironic-lib/+/774502
|
||||
part_template = '%s%s'
|
||||
if 'nvme' in root_dev:
|
||||
part_template = '%sp%s'
|
||||
@@ -189,8 +187,6 @@ def find_partition_with_path(path, device=None):
|
||||
LOG.debug('Skipping LVM partition %s', part)
|
||||
continue
|
||||
|
||||
# TODO(dtantsur): switch to ironic-lib instead:
|
||||
# https://review.opendev.org/c/openstack/ironic-lib/+/774502
|
||||
part_template = '%s%s'
|
||||
if 'nvme' in device:
|
||||
part_template = '%sp%s'
|
||||
|
||||
6
tox.ini
6
tox.ini
@@ -6,7 +6,6 @@ envlist = py3,functional,pep8
|
||||
constrain_package_deps = true
|
||||
usedevelop = True
|
||||
setenv =
|
||||
VIRTUAL_ENV={envdir}
|
||||
PYTHONDONTWRITEBYTECODE = 1
|
||||
OS_TEST_PATH=./ironic_python_agent/tests/unit
|
||||
OS_LOG_CAPTURE={env:OS_LOG_CAPTURE:true}
|
||||
@@ -38,7 +37,6 @@ commands =
|
||||
# Define virtualenv directory, port to use for functional testing, and number
|
||||
# of seconds to wait for the agent to come alive during functional testing.
|
||||
setenv =
|
||||
VIRTUAL_ENV={envdir}
|
||||
PYTHONDONTWRITEBYTECODE = 1
|
||||
OS_TEST_PATH=./ironic_python_agent/tests/functional
|
||||
TEST_PORT=9999
|
||||
@@ -51,8 +49,8 @@ allowlist_externals = pre-commit
|
||||
commands = pre-commit run --all-files --show-diff-on-failure {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
PYTHON=coverage run --source ironic_python_agent --omit='*tests*' --parallel-mode
|
||||
setenv =
|
||||
PYTHON=coverage run --source ironic_python_agent --omit='*tests*' --parallel-mode
|
||||
commands =
|
||||
coverage erase
|
||||
stestr run {posargs}
|
||||
|
||||
Reference in New Issue
Block a user