This commit is contained in:
2024-07-16 08:04:49 -05:00
parent 801af6b799
commit 5312797b97
4 changed files with 28 additions and 29 deletions

View File

@@ -68,9 +68,6 @@ auto generate_test_file_name(const std::string &directory,
auto get_test_dir() -> std::string {
auto dir = utils::get_environment_variable("PROJECT_TEST_DIR");
if (not dir.empty()) {
return utils::path::absolute(dir);
}
return utils::path::absolute(utils::path::combine(".", {"test_data"}));
return utils::path::combine(dir.empty() ? "." : dir, {"test_data"});
}
} // namespace repertory