Skip to content

Commit 7de511a

Browse files
style(pre-commit): autofix
1 parent 3376160 commit 7de511a

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

common/global_parameter_loader/test/test_global_params_launch.cpp

+17-16
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,32 @@
1313
// limitations under the License.
1414

1515
#include <gtest/gtest.h>
16+
1617
#include <cstdlib>
1718
#include <iostream>
1819
#include <string>
1920

2021
TEST(TestLaunchFile, test_launch_file)
2122
{
22-
// Define the path of Python launch file
23-
std::string global_params_launch_path = "global_params.launch.py";
23+
// Define the path of Python launch file
24+
std::string global_params_launch_path = "global_params.launch.py";
2425

25-
// Define the parameters you want to pass to the launch file
26-
std::string use_sim_time_param = "false";
27-
std::string vehicle_model_param = "sample_vehicle";
28-
// Construct the command to run the Python launch script with parameters
29-
std::string command = "ros2 launch global_parameter_loader " + global_params_launch_path +
30-
" use_sim_time:=" + use_sim_time_param +
31-
" vehicle_model:=" + vehicle_model_param;
26+
// Define the parameters you want to pass to the launch file
27+
std::string use_sim_time_param = "false";
28+
std::string vehicle_model_param = "sample_vehicle";
29+
// Construct the command to run the Python launch script with parameters
30+
std::string command = "ros2 launch global_parameter_loader " + global_params_launch_path +
31+
" use_sim_time:=" + use_sim_time_param +
32+
" vehicle_model:=" + vehicle_model_param;
3233

33-
// Use the system() function to execute the command
34-
int result = std::system(command.c_str());
35-
// Check the result of running the launch file
36-
EXPECT_EQ(result, 0);
34+
// Use the system() function to execute the command
35+
int result = std::system(command.c_str());
36+
// Check the result of running the launch file
37+
EXPECT_EQ(result, 0);
3738
}
3839

3940
int main(int argc, char * argv[])
4041
{
41-
testing::InitGoogleTest(&argc, argv);
42-
return RUN_ALL_TESTS();
43-
}
42+
testing::InitGoogleTest(&argc, argv);
43+
return RUN_ALL_TESTS();
44+
}

0 commit comments

Comments
 (0)