Skip to content

Commit

Permalink
rosbag2_tests: correct directory name for existing_dir test
Browse files Browse the repository at this point in the history
Signed-off-by: James Smith <james@foxglove.dev>
  • Loading branch information
james-rms committed Dec 21, 2022
1 parent aa83e8d commit 770ac09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Empty file.
Expand Up @@ -522,11 +522,11 @@ TEST_P(RecordFixture, record_fails_gracefully_if_bag_already_exists) {

internal::CaptureStderr();
auto exit_code = execute_and_wait_until_completion(
"ros2 bag record --output cdr_test -a --storage " + GetParam(), bag_path);
"ros2 bag record --output empty_dir -a --storage " + GetParam(), bag_path);
auto error_output = internal::GetCapturedStderr();

EXPECT_THAT(exit_code, Eq(EXIT_FAILURE));
EXPECT_THAT(error_output, HasSubstr("Output folder 'cdr_test' already exists"));
EXPECT_THAT(error_output, HasSubstr("Output folder 'empty_dir' already exists"));
}

TEST_P(RecordFixture, record_fails_if_both_all_and_topic_list_is_specified) {
Expand Down

0 comments on commit 770ac09

Please sign in to comment.