From: Zack Cerza Date: Tue, 22 Jul 2014 21:47:53 +0000 (-0600) Subject: Fail sooner if an invalid config_yaml is passed X-Git-Tag: v0.94.10~27^2^2~364^2~21 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=efce34186c495e9eafc2dec51f3cb697d14c3577;p=ceph.git Fail sooner if an invalid config_yaml is passed Signed-off-by: Zack Cerza --- diff --git a/teuthology/suite.py b/teuthology/suite.py index e1672dabb60b..652a1ca599c2 100644 --- a/teuthology/suite.py +++ b/teuthology/suite.py @@ -264,6 +264,12 @@ def prepare_and_schedule(job_config, suite_repo_path, base_yaml_paths, limit, suite_path = os.path.join(suite_repo_path, 'suites', job_config.suite.replace(':', '/')) + # Make sure the yaml paths are actually valid + for yaml_path in base_yaml_paths: + full_yaml_path = os.path.join(suite_repo_path, yaml_path) + if not os.path.exists(full_yaml_path): + raise IOError("File not found: " + full_yaml_path) + num_jobs = schedule_suite( job_config=job_config, path=suite_path,