Commit 8e30ef72 authored by Pavel Emelyanov's avatar Pavel Emelyanov

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: 's avatarPavel Emelyanov <xemul@parallels.com>
parent fa902be1
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment