[CRIU] [PATCH] test/crit-recode: skip images with zero size

Andrey Vagin avagin at openvz.org
Wed Jun 15 10:44:25 PDT 2016


From: Andrew Vagin <avagin at virtuozzo.com>

Now we have many tests with the crfail flags. When criu dump fails,
criu may create image files, but doesn't fill them.

Reported-by: Mr Jenkins
Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
 test/crit-recode.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/crit-recode.py b/test/crit-recode.py
index 3dd14c3..3075fea 100755
--- a/test/crit-recode.py
+++ b/test/crit-recode.py
@@ -5,7 +5,7 @@ import sys
 import os
 import subprocess
 
-find = subprocess.Popen(['find', 'test/dump/', '-name', '*.img'],
+find = subprocess.Popen(['find', 'test/dump/', '-size', '+0', '-name', '*.img'],
 		stdout = subprocess.PIPE)
 
 test_pass = True
-- 
2.7.4



More information about the CRIU mailing list