integration: Redirect nghttpx stdout/stderr to test driver's stdout/stderr
This commit is contained in:
parent
e06ed85747
commit
ae21130b13
|
@ -17,6 +17,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
@ -192,6 +193,9 @@ func newServerTesterInternal(src_args []string, t *testing.T, handler http.Handl
|
||||||
errCh: make(chan error),
|
errCh: make(chan error),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
st.cmd.Stdout = os.Stdout
|
||||||
|
st.cmd.Stderr = os.Stderr
|
||||||
|
|
||||||
if err := st.cmd.Start(); err != nil {
|
if err := st.cmd.Start(); err != nil {
|
||||||
st.t.Fatalf("Error starting %v: %v", serverBin, err)
|
st.t.Fatalf("Error starting %v: %v", serverBin, err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue