Merge pull request #44535 from azat/tests/integration-dmesg

tests: capture dmesg in integration tests
This commit is contained in:
Alexey Milovidov 2022-12-26 23:49:02 +03:00 committed by GitHub
commit a92a9b4d55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -413,5 +413,11 @@ if __name__ == "__main__":
subprocess.check_call(f"docker kill {' '.join(containers)}", shell=True)
print(f"Containers {containers} killed")
# Avoid overlaps with previous runs
subprocess.check_call("dmesg --clear", shell=True)
print(("Running pytest container as: '" + cmd + "'."))
subprocess.check_call(cmd, shell=True)
# Dump dmesg (to capture possible OOMs)
subprocess.check_call("dmesg -T", shell=True)