mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-03 19:02:27 +00:00
Tests cleaned up
This commit is contained in:
@@ -229,6 +229,9 @@ def prepare_enviroment():
|
||||
def tests(argv):
|
||||
if "--api" not in argv:
|
||||
argv.append("--api")
|
||||
if "--ckpt" not in argv:
|
||||
argv.append("--ckpt")
|
||||
argv.append("./test/test_files/empty.pt")
|
||||
|
||||
print(f"Launching Web UI in another process for testing with arguments: {' '.join(argv[1:])}")
|
||||
|
||||
@@ -236,7 +239,7 @@ def tests(argv):
|
||||
proc = subprocess.Popen([sys.executable, *argv], stdout=stdout, stderr=stderr)
|
||||
|
||||
import test.server_poll
|
||||
test.server_poll.run_tests()
|
||||
test.server_poll.run_tests(proc)
|
||||
|
||||
print(f"Stopping Web UI process with id {proc.pid}")
|
||||
proc.kill()
|
||||
|
Reference in New Issue
Block a user