Skip to content

Commit

Permalink
test(server.py): reorder input args
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskovalchuk committed Mar 28, 2024
1 parent df5330f commit 2859ca2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@

def main():
if len(sys.argv) != 3:
print("Usage: server.py port root_directory")
print("Usage: server.py root_directory port")
return

port = sys.argv[1]
root_directory = sys.argv[2]
root_directory = sys.argv[1]
port = sys.argv[2]

# Add user with the following permissions:
# e - change directory (CWD, CDUP commands)
Expand Down
2 changes: 1 addition & 1 deletion test/test_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class server

/* Usage: python server.py port root_directory */
boost::process::ipstream output;
process_ = boost::process::child(python_path, server_path, std::to_string(port), root_directory,
process_ = boost::process::child(python_path, server_path, root_directory, std::to_string(port),
boost::process::std_out > boost::process::null,
boost::process::std_err > output);

Expand Down

0 comments on commit 2859ca2

Please sign in to comment.