Skip to content

Commit 236b33a

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "tox: Drop redundant injection of VIRTUAL_ENV variable"
2 parents 9df86a0 + b55f08a commit 236b33a

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

ironic_python_agent/inject_files.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,6 @@ def _find_and_mount_path(path, partition, root_dev):
146146
with utils.mounted(partition) as part_path:
147147
yield os.path.join(part_path, path)
148148
else:
149-
# TODO(dtantsur): switch to ironic-lib instead:
150-
# https://review.opendev.org/c/openstack/ironic-lib/+/774502
151149
part_template = '%s%s'
152150
if 'nvme' in root_dev:
153151
part_template = '%sp%s'
@@ -189,8 +187,6 @@ def find_partition_with_path(path, device=None):
189187
LOG.debug('Skipping LVM partition %s', part)
190188
continue
191189

192-
# TODO(dtantsur): switch to ironic-lib instead:
193-
# https://review.opendev.org/c/openstack/ironic-lib/+/774502
194190
part_template = '%s%s'
195191
if 'nvme' in device:
196192
part_template = '%sp%s'

tox.ini

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ envlist = py3,functional,pep8
66
constrain_package_deps = true
77
usedevelop = True
88
setenv =
9-
VIRTUAL_ENV={envdir}
109
PYTHONDONTWRITEBYTECODE = 1
1110
OS_TEST_PATH=./ironic_python_agent/tests/unit
1211
OS_LOG_CAPTURE={env:OS_LOG_CAPTURE:true}
@@ -38,7 +37,6 @@ commands =
3837
# Define virtualenv directory, port to use for functional testing, and number
3938
# of seconds to wait for the agent to come alive during functional testing.
4039
setenv =
41-
VIRTUAL_ENV={envdir}
4240
PYTHONDONTWRITEBYTECODE = 1
4341
OS_TEST_PATH=./ironic_python_agent/tests/functional
4442
TEST_PORT=9999
@@ -51,8 +49,8 @@ allowlist_externals = pre-commit
5149
commands = pre-commit run --all-files --show-diff-on-failure {posargs}
5250

5351
[testenv:cover]
54-
setenv = VIRTUAL_ENV={envdir}
55-
PYTHON=coverage run --source ironic_python_agent --omit='*tests*' --parallel-mode
52+
setenv =
53+
PYTHON=coverage run --source ironic_python_agent --omit='*tests*' --parallel-mode
5654
commands =
5755
coverage erase
5856
stestr run {posargs}

0 commit comments

Comments
 (0)