Skip to content

Commit

Permalink
ci, reporter, Add step before reporter dump starts
Browse files Browse the repository at this point in the history
Currently when a test fails a dump is collected from the cluster for
later debugging. This dump includes various ssh expecter sessions to the vmi,
which are also printed to the screen. This makes it hard understanding when
the test ended and when the repoting started.
A simple solution is to add a step before the dump is collected.

Signed-off-by: Ram Lavi <[email protected]>
  • Loading branch information
RamLavi committed Jun 16, 2022
1 parent 7567487 commit 071fd6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/reporter/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func (r *KubernetesReporter) JustAfterEach(specReport types.SpecReport) {
if r.artifactsDir == "" {
return
}
By("Collecting Logs for failed test")
r.DumpTestNamespaces(specReport.RunTime)
}

Expand Down

0 comments on commit 071fd6c

Please sign in to comment.