[CRIU] [PATCH] zdtm.py: Properly report FAIL if test dependency file doesn't exist
Pavel Emelyanov
xemul at parallels.com
Thu Nov 12 00:11:04 PST 2015
Right now report looks like generic python exception about
inability to copy some file.
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
diff --git a/test/zdtm.py b/test/zdtm.py
index 87051ac..1f18d0f 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -109,6 +109,9 @@ class ns_flavor:
self.root = make_tests_root()
def __copy_one(self, fname):
+ if not os.access(fname, os.F_OK):
+ raise test_fail_exc("Deps check (%s doesn't exist)" % fname)
+
tfname = self.root + fname
if not os.access(tfname, os.F_OK):
# Copying should be atomic as tests can be
More information about the CRIU
mailing list