From: Dan Mick Date: Wed, 17 Feb 2016 02:54:29 +0000 (-0800) Subject: suite.py: tell you that the suite you asked for doesn't exist X-Git-Tag: 1.1.0~608^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f205e85fddee06eba2b6d578e5d2ca4737ea7244;p=teuthology.git suite.py: tell you that the suite you asked for doesn't exist I know it's not in fashion to issue useful error messages, but... Signed-off-by: Dan Mick --- diff --git a/teuthology/suite.py b/teuthology/suite.py index 6cd04e704..53815a8cd 100644 --- a/teuthology/suite.py +++ b/teuthology/suite.py @@ -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)