Skip to content

Commit

Permalink
[WIP] Remove rcpputils::fs dependencies in rosbag2 packages (#1740)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Orlov <[email protected]>
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Co-authored-by: Alejandro Hernández Cordero <[email protected]>
(cherry picked from commit 7a01d78)
  • Loading branch information
MichaelOrlov authored and mergify[bot] committed Aug 9, 2024
1 parent c86a562 commit 6a20ba4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions rosbag2_cpp/test/rosbag2_cpp/test_sequential_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

#include "rosbag2_storage/bag_metadata.hpp"
#include "rosbag2_storage/metadata_io.hpp"
#include "rosbag2_storage/ros_helper.hpp"
#include "rosbag2_storage/topic_metadata.hpp"

#include "rosbag2_test_common/tested_storage_ids.hpp"
Expand Down Expand Up @@ -251,7 +250,7 @@ TEST_P(ParametrizedTemporaryDirectoryFixture, reader_accepts_bare_file) {
}

TEST_P(ParametrizedTemporaryDirectoryFixture, get_metadata_include_topics_with_zero_messages) {
const auto bag_path = rcpputils::fs::path(temporary_dir_path_) / "bag_with_no_msgs";
const auto bag_path = fs::path(temporary_dir_path_) / "bag_with_no_msgs";
const std::string topic_name = "topic_with_0_messages";
const auto storage_id = GetParam();
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ class TemporaryDirectoryFixture : public Test
public:
TemporaryDirectoryFixture()
{
temporary_dir_path_ = rcpputils::fs::create_temp_directory("tmp_test_dir_").string();
temporary_dir_path_ = rcpputils::fs::create_temporary_directory("tmp_test_dir_").string();
}

~TemporaryDirectoryFixture() override
{
rcpputils::fs::remove_all(rcpputils::fs::path(temporary_dir_path_));
std::filesystem::remove_all(std::filesystem::path(temporary_dir_path_));
}

std::string temporary_dir_path_;
Expand Down
2 changes: 1 addition & 1 deletion rosbag2_transport/test/rosbag2_transport/test_rewrite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class TestRewrite : public Test, public WithParamInterface<std::string>
public:
TestRewrite()
{
auto tmp_dir = rcpputils::fs::create_temp_directory("test_bag_rewrite");
auto tmp_dir = rcpputils::fs::create_temporary_directory("test_bag_rewrite");
output_dir_ = fs::path(tmp_dir.string());
storage_id_ = GetParam();
bags_path_ = fs::path(_SRC_RESOURCES_DIR_PATH) / storage_id_;
Expand Down

0 comments on commit 6a20ba4

Please sign in to comment.