The qa path should be the default (just like it's set by
teuthology-suite), and we actually need to do the import to access the
tasks.
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
suite_sha1 = job_config.get('suite_sha1')
suite_path = os.path.normpath(os.path.join(
fetch_qa_suite(suite_branch, commit=suite_sha1),
- job_config.get('suite_relpath', ''),
+ job_config.get('suite_relpath', 'qa'),
))
sys.path.insert(1, suite_path)
return suite_path
m_fetch_qa_suite.return_value = "/some/other/suite/path"
result = run.fetch_tasks_if_needed(config)
m_fetch_qa_suite.assert_called_with("feature_branch", commit="commit")
- assert result == "/some/other/suite/path"
+ assert result == "/some/other/suite/path/qa"
@patch("teuthology.run.get_status")
@patch("teuthology.run.nuke")