diff options
author | Vladimir Repin <32306715+mezotaken@users.noreply.github.com> | 2022-11-14 11:36:07 +0000 |
---|---|---|
committer | Vladimir Repin <32306715+mezotaken@users.noreply.github.com> | 2022-11-14 11:36:07 +0000 |
commit | 0646040667b59526ac8346d53efd14dc0e75b01e (patch) | |
tree | 0d63875bf408020c3e5d7e06f28bd4c0f31acf6b /launch.py | |
parent | 3ffc1c6ceee169fac767a956fd0d4f153b005dbf (diff) | |
download | stable-diffusion-webui-gfx803-0646040667b59526ac8346d53efd14dc0e75b01e.tar.gz stable-diffusion-webui-gfx803-0646040667b59526ac8346d53efd14dc0e75b01e.tar.bz2 stable-diffusion-webui-gfx803-0646040667b59526ac8346d53efd14dc0e75b01e.zip |
Propagate test error and try it without localhost
Diffstat (limited to 'launch.py')
-rw-r--r-- | launch.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -234,8 +234,8 @@ def prepare_enviroment(): exit(0)
if run_tests:
- tests(test_dir)
- exit(0)
+ exitcode = tests(test_dir)
+ exit(exitcode)
def tests(test_dir):
@@ -251,10 +251,11 @@ def tests(test_dir): proc = subprocess.Popen([sys.executable, *sys.argv], stdout=stdout, stderr=stderr)
import test.server_poll
- test.server_poll.run_tests(proc, test_dir)
+ exitcode = test.server_poll.run_tests(proc, test_dir)
print(f"Stopping Web UI process with id {proc.pid}")
proc.kill()
+ return exitcode
def start():
|