visual tests: allow style paths in command line arguments
This commit is contained in:
parent
8519bde143
commit
5ad9b4531c
1 changed files with 2 additions and 2 deletions
|
@ -78,9 +78,9 @@ result_list runner::test(std::vector<std::string> const & style_names, report_ty
|
|||
{
|
||||
std::vector<runner::path_type> files(style_names.size());
|
||||
std::transform(style_names.begin(), style_names.end(), std::back_inserter(files),
|
||||
[&](std::string const & name)
|
||||
[&](runner::path_type const & name)
|
||||
{
|
||||
return styles_dir_ / (name + ".xml");
|
||||
return (name.extension() == ".xml") ? name : (styles_dir_ / (name.string() + ".xml"));
|
||||
});
|
||||
return test_parallel(files, report, jobs_);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue