Previously these had to be absolute paths, or relative
paths had to be present in the pwd and in ceph-qa-suite.
With this change you can now pass a relative path
like 'debug/mds_client.yaml' to reference a debug
fragment from ceph-qa-suite.
Signed-off-by: John Spray <john.spray@redhat.com>
if owner:
job_config.owner = owner
+ # Interpret any relative paths as being relative to ceph-qa-suite (absolute
+ # paths are unchanged by this)
+ base_yaml_paths = [os.path.join(suite_repo_path, b) for b in base_yaml_paths]
+
with NamedTemporaryFile(prefix='schedule_suite_',
delete=False) as base_yaml:
base_yaml.write(str(job_config))