mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
tests: Use current python interpreter for sub tests
Can be useful to run tests using distro runtimes, (like python3 on Debian). Relate-to: https://github.com/theupdateframework/tuf/issues/263 Origin: https://salsa.debian.org/rzr/python-tuf/-/tree/debian/review/master Forwarded: https://github.com/theupdateframework/tuf/pull/1337 Signed-off-by: Philippe Coval <rzr@users.sf.net>
This commit is contained in:
parent
58b1a759c2
commit
f00f89328e
1 changed files with 2 additions and 1 deletions
|
|
@ -25,6 +25,7 @@
|
|||
import errno
|
||||
import logging
|
||||
import socket
|
||||
import sys
|
||||
import time
|
||||
import subprocess
|
||||
import threading
|
||||
|
|
@ -186,7 +187,7 @@ def _start_process(self, extra_cmd_args, popen_cwd):
|
|||
"""Starts the process running the server."""
|
||||
|
||||
# The "-u" option forces stdin, stdout and stderr to be unbuffered.
|
||||
command = ['python', '-u', self.server] + extra_cmd_args
|
||||
command = [sys.executable, '-u', self.server] + extra_cmd_args
|
||||
|
||||
# Reusing one subprocess in multiple tests, but split up the logs for each.
|
||||
self.__server_process = subprocess.Popen(command,
|
||||
|
|
|
|||
Loading…
Reference in a new issue