Skip to content

Commit

Permalink
Refactor: Passing CLI arguments to the server during a test run
Browse files Browse the repository at this point in the history
  • Loading branch information
DarvinHarutyunyan committed Aug 8, 2023
1 parent 4b00e6b commit 03a020f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_units.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2280,7 +2280,8 @@ int main(int argc, char** argv) {
auto srv_id = fork();
if (srv_id == 0) {
usleep(1); // TODO Any statement is required to be run for successful `execl` run...
execl(srv_path.c_str(), srv_path.c_str(), "--quiet", (char*)(NULL));
std::string cli_args = fmt::format("--quiet --config {}", path());
execl(srv_path.c_str(), srv_path.c_str(), cli_args, (char*)(NULL));
exit(0);
}
usleep(1000000); // 1 sec
Expand Down

0 comments on commit 03a020f

Please sign in to comment.