Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <michael@openrobotics.org>
  • Loading branch information
mjcarroll committed Feb 16, 2023
1 parent 1255925 commit c3626a1
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/gz_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ TEST(checkUnrecognizedElements, GZ_UTILS_TEST_DISABLED_ON_WIN32(SDF))
{
// Check an SDFormat file with unrecognized elements
{
const auto path = sdf::testing::TestFile("sdf", "unrecognized_elements.sdf");
const auto path =
sdf::testing::TestFile("sdf", "unrecognized_elements.sdf");

std::string output =
custom_exec_str(GzCommand() + " sdf -k " + path + SdfVersion());
Expand All @@ -98,7 +99,8 @@ TEST(checkUnrecognizedElements, GZ_UTILS_TEST_DISABLED_ON_WIN32(SDF))

// Check an SDFormat file with unrecognized elements with XML namespaces
{
const auto path = sdf::testing::TestFile("sdf", "unrecognized_elements_with_namespace.sdf");
const auto path =
sdf::testing::TestFile("sdf", "unrecognized_elements_with_namespace.sdf");

std::string output =
custom_exec_str(GzCommand() + " sdf -k " + path + SdfVersion());
Expand Down Expand Up @@ -1905,7 +1907,8 @@ TEST(GraphCmd, GZ_UTILS_TEST_DISABLED_ON_WIN32(WorldFrameAttachedTo))
/////////////////////////////////////////////////
TEST(GraphCmd, GZ_UTILS_TEST_DISABLED_ON_WIN32(ModelFrameAttachedTo))
{
const auto path = sdf::testing::TestFile("sdf", "model_nested_frame_attached_to.sdf");
const auto path =
sdf::testing::TestFile("sdf", "model_nested_frame_attached_to.sdf");

const std::string output =
custom_exec_str(GzCommand() + " sdf -g frame " + path + SdfVersion());
Expand Down Expand Up @@ -2028,7 +2031,8 @@ TEST(inertial_stats, GZ_UTILS_TEST_DISABLED_ON_WIN32(SDF))
"Error: Expected a model file but received a world file.\n";
// Check a valid world file.
{
const auto path = sdf::testing::TestFile("sdf", "box_plane_low_friction_test.world");
const auto path =
sdf::testing::TestFile("sdf", "box_plane_low_friction_test.world");

std::string output =
custom_exec_str(GzCommand() + " sdf --inertial-stats " +
Expand All @@ -2048,7 +2052,7 @@ TEST(HelpVsCompletionFlags, SDF)

// Call the output function in the bash completion script
const auto scriptPath =
sdf::testing::SourceFile("src", "cmd","sdf.bash_completion.sh");
sdf::testing::SourceFile("src", "cmd", "sdf.bash_completion.sh");

// Equivalent to:
// sh -c "bash -c \". /path/to/sdf.bash_completion.sh; _gz_sdf_flags\""
Expand Down

0 comments on commit c3626a1

Please sign in to comment.