2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

zdtm.py: Properly report FAIL if test dependency file doesn't exist

Right now report looks like generic python exception about
inability to copy some file.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2015-11-12 11:11:00 +03:00
parent fa902be145
commit 8e30ef722c

View File

@@ -110,6 +110,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