From efce34186c495e9eafc2dec51f3cb697d14c3577 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 22 Jul 2014 15:47:53 -0600 Subject: [PATCH] Fail sooner if an invalid config_yaml is passed Signed-off-by: Zack Cerza --- teuthology/suite.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/teuthology/suite.py b/teuthology/suite.py index e1672dabb6..652a1ca599 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, -- 2.39.5