mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +00:00
Put performance data from Density test into /tmp/ folder
This commit is contained in:
parent
7309e1f707
commit
9dee8206f4
@ -60,8 +60,8 @@ var _ = Describe("Density", func() {
|
|||||||
ns = nsForTesting.Name
|
ns = nsForTesting.Name
|
||||||
expectNoError(err)
|
expectNoError(err)
|
||||||
uuid = string(util.NewUUID())
|
uuid = string(util.NewUUID())
|
||||||
expectNoError(os.Mkdir(uuid, 0777))
|
expectNoError(os.Mkdir(fmt.Sprintf("/tmp/%s", uuid), 0777))
|
||||||
expectNoError(writePerfData(c, uuid, "before"))
|
expectNoError(writePerfData(c, fmt.Sprintf("/tmp/%s", uuid), "before"))
|
||||||
})
|
})
|
||||||
|
|
||||||
AfterEach(func() {
|
AfterEach(func() {
|
||||||
@ -81,7 +81,7 @@ var _ = Describe("Density", func() {
|
|||||||
Failf("Couldn't delete ns %s", err)
|
Failf("Couldn't delete ns %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
expectNoError(writePerfData(c, uuid, "after"))
|
expectNoError(writePerfData(c, fmt.Sprintf("/tmp/%s", uuid), "after"))
|
||||||
|
|
||||||
// Verify latency metrics
|
// Verify latency metrics
|
||||||
// TODO: Update threshold to 1s once we reach this goal
|
// TODO: Update threshold to 1s once we reach this goal
|
||||||
@ -122,7 +122,7 @@ var _ = Describe("Density", func() {
|
|||||||
It(name, func() {
|
It(name, func() {
|
||||||
totalPods := itArg.podsPerMinion * minionCount
|
totalPods := itArg.podsPerMinion * minionCount
|
||||||
RCName = "density" + strconv.Itoa(totalPods) + "-" + uuid
|
RCName = "density" + strconv.Itoa(totalPods) + "-" + uuid
|
||||||
fileHndl, err := os.Create(fmt.Sprintf("%s/pod_states.csv", uuid))
|
fileHndl, err := os.Create(fmt.Sprintf("/tmp/%s/pod_states.csv", uuid))
|
||||||
expectNoError(err)
|
expectNoError(err)
|
||||||
defer fileHndl.Close()
|
defer fileHndl.Close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user