From f93d19a1a92afbe549f057f815dd036c9e56183b Mon Sep 17 00:00:00 2001
From: Konstantin Osipov <kostja@tarantool.org>
Date: Thu, 14 Jun 2012 14:47:39 +0400
Subject: [PATCH] Fix unit test run under valgrind.

---
 test/lib/test_suite.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/lib/test_suite.py b/test/lib/test_suite.py
index 91c0f23fa5..9c41a10475 100644
--- a/test/lib/test_suite.py
+++ b/test/lib/test_suite.py
@@ -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):
-- 
GitLab