Fix report prefix for node conformance test.

This commit is contained in:
Random-Liu 2016-12-15 15:25:12 -08:00
parent 845187b15a
commit c57f2ec064

View File

@ -287,8 +287,8 @@ func (c *ConformanceRemote) RunTest(host, workspace, results, junitFilePrefix, t
// Run the tests
glog.V(2).Infof("Starting tests on %q", host)
podManifestPath := getPodManifestPath(workspace)
cmd := fmt.Sprintf("'timeout -k 30s %fs docker run --rm --privileged=true --net=host -v /:/rootfs -v %s:%s -v %s:/var/result %s'",
timeout.Seconds(), podManifestPath, podManifestPath, results, getConformanceImageRepo())
cmd := fmt.Sprintf("'timeout -k 30s %fs docker run --rm --privileged=true --net=host -v /:/rootfs -v %s:%s -v %s:/var/result -e TEST_ARGS=--report-prefix=%s %s'",
timeout.Seconds(), podManifestPath, podManifestPath, results, junitFilePrefix, getConformanceImageRepo())
testOutput, err := SSH(host, "sh", "-c", cmd)
if err != nil {
return testOutput, err