mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-16 03:50:03 +08:00
Using the same python executable to run inference tests, rather than system python
This commit is contained in:
parent
53e8d8193c
commit
a4be4c1a69
@ -1,4 +1,4 @@
|
||||
# Config for testing nodes
|
||||
testing:
|
||||
custom_nodes: tests/inference/testing_nodes
|
||||
custom_nodes: testing_nodes
|
||||
|
||||
|
||||
@ -14,6 +14,10 @@ import urllib.request
|
||||
import urllib.parse
|
||||
import urllib.error
|
||||
from comfy_execution.graph_utils import GraphBuilder, Node
|
||||
import os
|
||||
import sys
|
||||
|
||||
PYTHON_EXECUTABLE_PATH = os.path.realpath(sys.executable)
|
||||
|
||||
class RunResult:
|
||||
def __init__(self, prompt_id: str):
|
||||
@ -125,7 +129,7 @@ class TestExecution:
|
||||
def _server(self, args_pytest, request):
|
||||
# Start server
|
||||
pargs = [
|
||||
'python','main.py',
|
||||
PYTHON_EXECUTABLE_PATH,'main.py',
|
||||
'--output-directory', args_pytest["output_dir"],
|
||||
'--listen', args_pytest["listen"],
|
||||
'--port', str(args_pytest["port"]),
|
||||
|
||||
@ -14,6 +14,8 @@ import websocket #NOTE: websocket-client (https://github.com/websocket-client/we
|
||||
import uuid
|
||||
import urllib.request
|
||||
import urllib.parse
|
||||
import sys
|
||||
|
||||
|
||||
|
||||
from comfy.samplers import KSampler
|
||||
@ -21,6 +23,7 @@ from comfy.samplers import KSampler
|
||||
"""
|
||||
These tests generate and save images through a range of parameters
|
||||
"""
|
||||
PYTHON_EXECUTABLE_PATH = os.path.realpath(sys.executable)
|
||||
|
||||
class ComfyGraph:
|
||||
def __init__(self,
|
||||
@ -152,7 +155,7 @@ class TestInference:
|
||||
def _server(self, args_pytest):
|
||||
# Start server
|
||||
p = subprocess.Popen([
|
||||
'python','main.py',
|
||||
PYTHON_EXECUTABLE_PATH,'main.py',
|
||||
'--output-directory', args_pytest["output_dir"],
|
||||
'--listen', args_pytest["listen"],
|
||||
'--port', str(args_pytest["port"]),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user