Skip to content
Snippets Groups Projects
Commit f93d19a1 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Fix unit test run under valgrind.

parent 9d14011f
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ class FilteredStream:
def check_valgrind_log(path_to_log):
""" Check that there were no warnings in the log."""
return os.path.getsize(path_to_log) != 0
return os.path.exists(path_to_log) and os.path.getsize(path_to_log) != 0
def print_tail_n(filename, num_lines):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment