Merge pull request #2720

110339f5 unit_tests: fix data dir determination (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-11-14 15:16:23 +02:00
commit 4754390725
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ int main(int argc, char** argv)
return 1; return 1;
if (vm["data-dir"].defaulted()) if (vm["data-dir"].defaulted())
unit_test::data_dir = boost::filesystem::path(epee::string_tools::get_current_module_folder()) unit_test::data_dir = boost::filesystem::canonical(boost::filesystem::path(epee::string_tools::get_current_module_folder()))
.parent_path().parent_path().parent_path().parent_path() .parent_path().parent_path().parent_path().parent_path()
.append("tests").append("data"); .append("tests").append("data");
else else