
- Fixed an issue where containers wouldn't stop and get removed when a test run is interrupted - Replaced PIDs with Ginkgo process indexes + PPIDs - Fixed CPU allocation for envoy and nginx-ldp containers - All container logs should now get saved properly Type: test Change-Id: I4c737c1d326390494c0dda1ec6d3fc1f04f51663 Signed-off-by: Adrian Villin <avillin@cisco.com>
27 lines
435 B
Go
27 lines
435 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
"net/http"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
if len(os.Args) < 4 {
|
|
fmt.Println("arg expected")
|
|
os.Exit(1)
|
|
}
|
|
|
|
http.HandleFunc("/httpTestFile", func(w http.ResponseWriter, r *http.Request) {
|
|
file, _ := os.Open(os.Args[3] + "httpTestFile" + os.Args[2])
|
|
defer file.Close()
|
|
io.Copy(w, file)
|
|
})
|
|
err := http.ListenAndServe(os.Args[1], nil)
|
|
if err != nil {
|
|
fmt.Printf("%v\n", err)
|
|
os.Exit(1)
|
|
}
|
|
}
|