Skip to content

Commit

Permalink
Fix: Config file path in ustore_server CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
DarvinHarutyunyan committed Aug 8, 2023
1 parent 2b85a0a commit 4077fcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ filterwarnings = ["error"]
testpaths = ["python/tests"]

[tool.cibuildwheel]
build-verbosity = 3
build-verbosity = 0
#manylinux-x86_64-image = "manylinux_2_28"
environment = "CMAKE_ARGS_F=/tmp/cmake_args"

Expand Down
4 changes: 2 additions & 2 deletions tests/test_units.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static char const* path() {
static std::string config() {
auto dir = path();
if (!dir)
return {};
return "";
return fmt::format(R"({{"version": "1.0", "directory": "{}"}})", dir);
}

Expand Down Expand Up @@ -2281,7 +2281,7 @@ int main(int argc, char** argv) {
if (srv_id == 0) {
usleep(1); // TODO Any statement is required to be run for successful `execl` run...
std::string cli_args = fmt::format("--quiet --config {}", path());
execl(srv_path.c_str(), srv_path.c_str(), cli_args, (char*)(NULL));
execl(srv_path.c_str(), srv_path.c_str(), cli_args.c_str(), (char*)(NULL));
exit(0);
}
usleep(1000000); // 1 sec
Expand Down

0 comments on commit 4077fcf

Please sign in to comment.