Add a flag that will make test gather metrics from all running components after the test finishes.

This commit is contained in:
gmarek
2015-12-23 15:56:56 +01:00
parent c36226bc39
commit 2dcafa3854
8 changed files with 125 additions and 28 deletions

View File

@@ -90,6 +90,7 @@ func init() {
flag.BoolVar(&testContext.CleanStart, "clean-start", false, "If true, purge all namespaces except default and system before running tests. This serves to cleanup test namespaces from failed/interrupted e2e runs in a long-lived cluster.")
flag.BoolVar(&testContext.GatherKubeSystemResourceUsageData, "gather-resource-usage", false, "If set to true framework will be monitoring resource usage of system add-ons in (some) e2e tests.")
flag.BoolVar(&testContext.GatherLogsSizes, "gather-logs-sizes", false, "If set to true framework will be monitoring logs sizes on all machines running e2e tests.")
flag.BoolVar(&testContext.GatherMetricsAfterTest, "gather-metrics-at-teardown", false, "If set to true framwork will gather metrics from all components after each test.")
}
func TestE2E(t *testing.T) {