forked from pierre/GrammalecteClient
Catch server output
This commit is contained in:
parent
9b13ce1dd3
commit
47f58820d9
@ -2,7 +2,7 @@ use crate::server::utils::{get_free_port, wait_for_port};
|
|||||||
use mktemp::Temp;
|
use mktemp::Temp;
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use std::io::{Cursor, Read};
|
use std::io::{Cursor, Read};
|
||||||
use std::process::Child;
|
use std::process::{Child, Stdio};
|
||||||
use zip::ZipArchive;
|
use zip::ZipArchive;
|
||||||
|
|
||||||
pub struct EmbeddedServer {
|
pub struct EmbeddedServer {
|
||||||
@ -49,6 +49,7 @@ impl EmbeddedServer {
|
|||||||
.arg(server_file)
|
.arg(server_file)
|
||||||
.arg("-p")
|
.arg("-p")
|
||||||
.arg(port.to_string())
|
.arg(port.to_string())
|
||||||
|
.stdout(Stdio::null())
|
||||||
.spawn()?;
|
.spawn()?;
|
||||||
|
|
||||||
wait_for_port(port)?;
|
wait_for_port(port)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user