From f205e85fddee06eba2b6d578e5d2ca4737ea7244 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Tue, 16 Feb 2016 18:54:29 -0800 Subject: [PATCH] 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 --- teuthology/suite.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/teuthology/suite.py b/teuthology/suite.py index 6cd04e7041..53815a8cd1 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) -- 2.39.5