Update test_server.py

This commit is contained in:
haoranchen 2024-11-07 15:46:57 +08:00 committed by GitHub
parent 81d321a62f
commit 9473668dd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ def get_config(request):
def setup_module(get_config): def setup_module(get_config):
def run_cmd(command): def run_cmd(command):
print("CMD:", command) print("CMD:", command)
result = subprocess.run(command, capture_output=True, text=False, shell=False) result = subprocess.run(command, capture_output=True, text=True, shell=True)
print("STDOUT:", result.stdout) print("STDOUT:", result.stdout)
print("STDERR:", result.stderr) print("STDERR:", result.stderr)
print("Return Code:", result.returncode) print("Return Code:", result.returncode)