From b5cf2de900b07a8879196573cfc69c2dc737a5f1 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 24 Oct 2024 20:08:40 -0500 Subject: [PATCH] refactor --- .../repertory_test/include/fixtures/fuse_fixture.hpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/repertory/repertory_test/include/fixtures/fuse_fixture.hpp b/repertory/repertory_test/include/fixtures/fuse_fixture.hpp index 53429431..32eb914e 100644 --- a/repertory/repertory_test/include/fixtures/fuse_fixture.hpp +++ b/repertory/repertory_test/include/fixtures/fuse_fixture.hpp @@ -189,23 +189,15 @@ public: static void execute_mount() { auto mount_cmd = "./repertory -dd \"" + config->get_data_directory() + "\"" + " " + utils::string::join(drive_args, ' '); - std::cout << "mount command: " << mount_cmd << std::endl; ASSERT_EQ(0, system(mount_cmd.c_str())); std::this_thread::sleep_for(5s); ASSERT_TRUE(utils::file::directory{mount_location}.exists()); } static void execute_unmount() { -#if FUSE_USE_VERSION >= 30 - auto unmount_cmd = "fusermount3 -u \"" + mount_location + "\""; -#else - auto unmount_cmd = "fusermount -u \"" + mount_location + "\""; -#endif - auto unmounted{false}; for (int i = 0; not unmounted && (i < 50); i++) { - std::cout << "unmount command: " << unmount_cmd << std::endl; - auto res = system(unmount_cmd.c_str()); + auto res = fuse_base::unmount(mount_location); unmounted = res == 0; ASSERT_EQ(0, res); if (not unmounted) {