refactor
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user