macos test fixes
Some checks failed
BlockStorage/repertory_mac/pipeline/head There was a failure building this commit
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2025-08-08 08:27:04 -05:00
parent 5c5b7047a0
commit 0150cb2918

View File

@@ -357,7 +357,13 @@ public:
EXPECT_TRUE(utils::file::change_to_process_directory());
args.emplace_back(location);
#if defined(__APPLE__)
auto mount_cmd = "./repertory.app/Contents/MacOS/repertory " +
utils::string::join(args, ' ');
#else // !defined(__APPLE__)
auto mount_cmd = "./repertory " + utils::string::join(args, ' ');
#endif // defined(__APPLE__)
std::cout << "mount command: " << mount_cmd << std::endl;
ASSERT_EQ(0, system(mount_cmd.c_str()));
@@ -369,7 +375,13 @@ public:
EXPECT_TRUE(utils::file::change_to_process_directory());
args.emplace_back("-unmount");
#if defined(__APPLE__)
auto mount_cmd = "./repertory.app/Contents/MacOS/repertory " +
utils::string::join(args, ' ');
#else // !defined(__APPLE__)
auto unmount_cmd = "./repertory " + utils::string::join(args, ' ');
#endif // defined(__APPLE__)
std::cout << "unmount command: " << unmount_cmd << std::endl;
auto res = system(unmount_cmd.c_str());