[Python] Why does `subprocess.Popen` return a `proc.returncode` of 0 (success) even when an...

Discussão em 'Python' iniciado por Stack, Fevereiro 10, 2025.

  1. Stack

    Stack Membro Participativo

    error:

    make[2]: *** [live_module/test/CMakeFiles/live_report_unittest.dir/live_report_unittest.cc.o] 错误 1
    make[1]: *** [live_module/test/CMakeFiles/live_report_unittest.dir/all] 错误 2
    make: *** [all] 错误 2
    live_module/test/live_report_unittest.cc:183:2: 错误:no matching function for call to ‘EasyMock::Mocke


    code:

    proc = subprocess.Popen(
    cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
    returncode = proc.returncode


    For the error above, why does executing the code below result in a return code of 0 (success) when I expect it to report an error? What is the reason for this, and how can I resolve the issue?

    Continue reading...

Compartilhe esta Página