fix truncate
All checks were successful
BlockStorage/repertory_osx_builds/pipeline/head This commit looks good
All checks were successful
BlockStorage/repertory_osx_builds/pipeline/head This commit looks good
This commit is contained in:
@@ -519,15 +519,16 @@ static void test_xattr_removexattr(const std::string &file_path) {
|
||||
TEST(fuse_drive, all_tests) {
|
||||
auto current_directory = std::filesystem::current_path();
|
||||
|
||||
for (std::size_t idx = 0U; idx < 2U; idx++) {
|
||||
for (std::size_t idx = 1U; idx < 2U; idx++) {
|
||||
std::filesystem::current_path(current_directory);
|
||||
|
||||
const auto test_directory =
|
||||
utils::path::absolute("./fuse_drive" + std::to_string(idx));
|
||||
EXPECT_TRUE(utils::file::delete_directory_recursively(test_directory));
|
||||
|
||||
const auto mount_location = utils::path::absolute(
|
||||
utils::path::combine(test_directory, {"mount", std::to_string(idx)}));
|
||||
EXPECT_TRUE(utils::file::delete_directory_recursively(mount_location));
|
||||
|
||||
EXPECT_TRUE(utils::file::create_full_directory_path(mount_location));
|
||||
{
|
||||
std::unique_ptr<app_config> config_ptr{};
|
||||
@@ -536,7 +537,6 @@ TEST(fuse_drive, all_tests) {
|
||||
|
||||
const auto cfg_directory = utils::path::absolute(
|
||||
utils::path::combine(test_directory, {"cfg", std::to_string(idx)}));
|
||||
EXPECT_TRUE(utils::file::delete_directory_recursively(cfg_directory));
|
||||
EXPECT_TRUE(utils::file::create_full_directory_path(cfg_directory));
|
||||
|
||||
std::vector<std::string> drive_args{};
|
||||
@@ -704,9 +704,6 @@ TEST(fuse_drive, all_tests) {
|
||||
drive_args.push_back(mount_location);
|
||||
execute_mount(config_ptr->get_data_directory(), drive_args, th);
|
||||
}
|
||||
|
||||
EXPECT_TRUE(utils::file::delete_directory_recursively(mount_location));
|
||||
EXPECT_TRUE(utils::file::delete_directory_recursively(test_directory));
|
||||
}
|
||||
|
||||
std::filesystem::current_path(current_directory);
|
||||
|
Reference in New Issue
Block a user