Skip to content

Commit

Permalink
Merge pull request #19012 from skye:test_no_log_spam
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 591400099
  • Loading branch information
jax authors committed Dec 16, 2023
2 parents 717059e + 904103e commit 732fd15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/logging_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ def test_no_log_spam(self):
""")
python = sys.executable
assert "python" in python
proc = subprocess.run([python, "-c", program], capture_output=True)
# Make sure C++ logging is at default level for the test process.
proc = subprocess.run([python, "-c", program], capture_output=True,
env={"TF_CPP_MIN_LOG_LEVEL": "1"})

lines = proc.stdout.split(b"\n")
lines.extend(proc.stderr.split(b"\n"))
Expand Down

0 comments on commit 732fd15

Please sign in to comment.