Resolve merge conflicts
This commit is contained in:
@@ -187,11 +187,11 @@ void packet_injector_test_frame_run(struct packet_injector_case *test)
|
||||
EXPECT_TRUE(replace_file_string(config_file_abs_path, "dumpfile_dir = \"/tmp/dumpfile/\"", temp) == 0);
|
||||
|
||||
// run packet injector
|
||||
//system_cmd("cd %s && %s && cd ..", test->work_dir, test->packet_injector_cmd);
|
||||
char cwd[1024];
|
||||
getcwd(cwd, sizeof(cwd));
|
||||
chdir(test->work_dir);
|
||||
inject_packet_main(args_len(test->packet_injector_cmd),(char**)test->packet_injector_cmd);
|
||||
inject_packet_main(args_len(test->packet_injector_cmd), (char **)test->packet_injector_cmd);
|
||||
|
||||
// compare pcap
|
||||
if (test->c2s_output_pcap && test->c2s_expect_pcap)
|
||||
{
|
||||
@@ -215,5 +215,5 @@ void packet_injector_test_frame_run(struct packet_injector_case *test)
|
||||
{
|
||||
system_cmd("rm -rf %s", test->work_dir);
|
||||
}
|
||||
chdir(cwd);
|
||||
chdir(cwd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user