mirror of
https://github.com/bolucat/Archive.git
synced 2026-04-24 09:44:28 +08:00
Update On Thu Sep 25 20:42:16 CEST 2025
This commit is contained in:
@@ -97,7 +97,9 @@ def start_naive(naive_args, config_file):
|
||||
cmdline = [argv.naive]
|
||||
cmdline.extend(naive_args)
|
||||
|
||||
proc = subprocess.Popen(cmdline, stdout=subprocess.DEVNULL,
|
||||
env = os.environ.copy()
|
||||
env["TEST_MARK_STARTUP"] = "yes"
|
||||
proc = subprocess.Popen(cmdline, stdout=subprocess.DEVNULL, env=env,
|
||||
stderr=subprocess.PIPE, text=True, encoding='utf-8')
|
||||
print('subprocess.Popen', ' '.join(cmdline), 'pid:', proc.pid)
|
||||
|
||||
@@ -122,7 +124,7 @@ def start_naive(naive_args, config_file):
|
||||
print('terminate pid', proc.pid)
|
||||
proc.terminate()
|
||||
return 'Failed to listen'
|
||||
elif 'Listening on ' in line:
|
||||
elif 'TEST_MARK_STARTUP' in line:
|
||||
timeout.cancel()
|
||||
return proc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user