mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
Send success status message to stdout, remove comment
This commit is contained in:
parent
13fe01c55d
commit
a8ad8b9560
2 changed files with 2 additions and 3 deletions
|
@ -65,10 +65,9 @@ class Capybara::Driver::Webkit
|
|||
def start_server
|
||||
server_path = File.expand_path("../../../../../bin/webkit_server", __FILE__)
|
||||
|
||||
# Start the server and capture stderr, it will tell us the port the server is listening on
|
||||
read_pipe, write_pipe = IO.pipe
|
||||
@pid = fork do
|
||||
$stderr.reopen write_pipe
|
||||
$stdout.reopen write_pipe
|
||||
read_pipe.close
|
||||
exec(server_path)
|
||||
end
|
||||
|
|
|
@ -11,7 +11,7 @@ int main(int argc, char **argv) {
|
|||
Server server;
|
||||
|
||||
if (server.start()) {
|
||||
std::cerr << "Capybara-webkit server started, listening on port: " << server.server_port() << std::endl;
|
||||
std::cout << "Capybara-webkit server started, listening on port: " << server.server_port() << std::endl;
|
||||
return app.exec();
|
||||
} else {
|
||||
std::cerr << "Couldn't start capybara-webkit server" << std::endl;
|
||||
|
|
Loading…
Reference in a new issue