diff --git a/e2e_tests/conftest.py b/e2e_tests/conftest.py index 6f444de3f..7e87074b7 100644 --- a/e2e_tests/conftest.py +++ b/e2e_tests/conftest.py @@ -1,4 +1,5 @@ import os +import sys import signal import pytest import time @@ -89,7 +90,7 @@ def _find_free_port(self): def start(self, checker_path=[]): - cmdline = f'python3 -m lyrebird -b -v --no-mitm --mock {self.port} --extra-mock {self.extra_mock_port}' + cmdline = f'{sys.executable} -m lyrebird -b -v --no-mitm --mock {self.port} --extra-mock {self.extra_mock_port}' for path in checker_path: cmdline = cmdline + f' --script {path}' self.lyrebird_process = subprocess.Popen(cmdline, shell=True, start_new_session=True)