mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-06 10:53:50 +08:00
Show stdout/stderr in CI/CD tests
makes it easier to fix based on warnings shown with e.g. valgrind closes https://github.com/official-stockfish/Stockfish/pull/5862 No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
2a5b41fd12
commit
4c6d2bf921
@@ -97,14 +97,17 @@ class Syzygy:
|
|||||||
tarball_path = os.path.join(tmpdirname, f"{file}.tar.gz")
|
tarball_path = os.path.join(tmpdirname, f"{file}.tar.gz")
|
||||||
|
|
||||||
response = requests.get(url, stream=True)
|
response = requests.get(url, stream=True)
|
||||||
with open(tarball_path, 'wb') as f:
|
with open(tarball_path, "wb") as f:
|
||||||
for chunk in response.iter_content(chunk_size=8192):
|
for chunk in response.iter_content(chunk_size=8192):
|
||||||
f.write(chunk)
|
f.write(chunk)
|
||||||
|
|
||||||
with tarfile.open(tarball_path, "r:gz") as tar:
|
with tarfile.open(tarball_path, "r:gz") as tar:
|
||||||
tar.extractall(tmpdirname)
|
tar.extractall(tmpdirname)
|
||||||
|
|
||||||
shutil.move(os.path.join(tmpdirname, file), os.path.join(PATH, "syzygy"))
|
shutil.move(
|
||||||
|
os.path.join(tmpdirname, file), os.path.join(PATH, "syzygy")
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class OrderedClassMembers(type):
|
class OrderedClassMembers(type):
|
||||||
@classmethod
|
@classmethod
|
||||||
@@ -307,7 +310,10 @@ class Stockfish:
|
|||||||
text=True,
|
text=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
self.process.stdout
|
if self.process.returncode != 0:
|
||||||
|
print(self.process.stdout)
|
||||||
|
print(self.process.stderr)
|
||||||
|
print(f"Process failed with return code {self.process.returncode}")
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user