Merge pull request #6486 from jayunit100/density2

E2E: parameter logs to inside of It declarations.
This commit is contained in:
Rohit Jnagal 2015-04-06 16:02:12 -07:00
commit 79fbb1018d

View File

@ -236,8 +236,6 @@ var _ = Describe("Density", func() {
//cannot do a range iterator over structs. //cannot do a range iterator over structs.
dtest := dtests[i] dtest := dtests[i]
glog.Info("Density test parameters: %v", dtest)
//if ppm==0, its a raw density test. //if ppm==0, its a raw density test.
//otherwise, we continue launching n nodes per pod in threads till we meet the totalPods #. //otherwise, we continue launching n nodes per pod in threads till we meet the totalPods #.
if dtest.podsPerMinion == 0 { if dtest.podsPerMinion == 0 {
@ -248,10 +246,10 @@ var _ = Describe("Density", func() {
name = "[Skipped] " + name name = "[Skipped] " + name
} }
It(name, func() { It(name, func() {
glog.Info("Density test parameters: %v", dtest)
RCName = "my-hostname-density" + strconv.Itoa(dtest.totalPods) + "-" + string(util.NewUUID()) RCName = "my-hostname-density" + strconv.Itoa(dtest.totalPods) + "-" + string(util.NewUUID())
RunRC(c, RCName, ns, "gcr.io/google_containers/pause:go", dtest.totalPods) RunRC(c, RCName, ns, "gcr.io/google_containers/pause:go", dtest.totalPods)
}) })
glog.Info("moving on, test already finished....")
} else { } else {
// # of threads calibrate to totalPods // # of threads calibrate to totalPods
threads := (dtest.totalPods / (dtest.podsPerMinion * dtest.rcsPerThread)) threads := (dtest.totalPods / (dtest.podsPerMinion * dtest.rcsPerThread))