Skip to content

Commit

Permalink
Adjust python exe for consistence cross subprocess (#477)
Browse files Browse the repository at this point in the history
* adjust python exe
  • Loading branch information
AllyW authored Sep 19, 2024
1 parent edd98b0 commit f9d9e2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Release History
++++++
* `azdev cmdcov`: Support both extension short name and long name
* `azdev cmdcov`: Fix sorting issues
* `azdev test`: Fix executable inconsistence in `subprocess` of windows platform

0.1.79
++++++
Expand Down
2 changes: 1 addition & 1 deletion azdev/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# license information.
# -----------------------------------------------------------------------------

__VERSION__ = '0.1.79'
__VERSION__ = '0.1.80'
3 changes: 2 additions & 1 deletion azdev/operations/testtool/pytest_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# -----------------------------------------------------------------------------

import os
import sys

from knack.log import get_logger

Expand Down Expand Up @@ -35,7 +36,7 @@ def _run(test_paths, pytest_args):
arguments.append('--lf')
if pytest_args:
arguments += pytest_args
cmd = 'python -m pytest {}'.format(' '.join(arguments))
cmd = sys.executable + ' -m pytest {}'.format(' '.join(arguments))
logger.info('Running: %s', cmd)
return call(cmd)

Expand Down

0 comments on commit f9d9e2f

Please sign in to comment.