]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
suite.py: tell you that the suite you asked for doesn't exist
authorDan Mick <dan.mick@redhat.com>
Wed, 17 Feb 2016 02:54:29 +0000 (18:54 -0800)
committerDan Mick <dan.mick@redhat.com>
Fri, 27 May 2016 22:13:01 +0000 (15:13 -0700)
I know it's not in fashion to issue useful error messages, but...

Signed-off-by: Dan Mick <dan.mick@redhat.com>
teuthology/suite.py

index 6cd04e70416b54e521740fae44305ebd79ac1fb3..53815a8cd13238537c2e27e81ecca1c9adbc152e 100644 (file)
@@ -1060,6 +1060,8 @@ def _get_matrix(path, _isfile=os.path.isfile,
 
 def _build_matrix(path, _isfile=os.path.isfile,
                   _isdir=os.path.isdir, _listdir=os.listdir, mincyclicity=0, item=''):
+    if not os.path.exists(path):
+        raise IOError('%s does not exist' % path)
     if _isfile(path):
         if path.endswith('.yaml'):
             return matrix.Base(item)