Ver Fonte

Merge branch 'ci/not_show_error_when_checkout_ref' into 'master'

CI: Not showing stdout nor stderr when checkout ref

See merge request espressif/esp-idf!10258
Ivan Grokhotkov há 5 anos atrás
pai
commit
6beefff725
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      tools/ci/checkout_project_ref.py

+ 1 - 1
tools/ci/checkout_project_ref.py

@@ -68,7 +68,7 @@ if __name__ == "__main__":
 
     for candidate in candidate_branches:
         try:
-            subprocess.check_call(["git", "checkout", candidate])
+            subprocess.check_call(["git", "checkout", candidate], stdout=subprocess.PIPE, stderr=subprocess.PIPE)  # not print the stdout nor stderr
             print("CI using ref {} for project {}".format(candidate, args.project))
             break
         except subprocess.CalledProcessError: