func (t *NvidiaGPUUpgradeTest) Test(f *framework.Framework, done <-chan struct{}, upgrade UpgradeType) {
	<-done
	ginkgo.By("Verifying gpu job success")
	scheduling.VerifyJobNCompletions(f, completions)
	if upgrade == MasterUpgrade || upgrade == ClusterUpgrade {
		// MasterUpgrade should be totally hitless.
		job, err := e2ejob.GetJob(f.ClientSet, f.Namespace.Name, "cuda-add")
		framework.ExpectNoError(err)
		framework.ExpectEqual(job.Status.Failed, 0, "Job pods failed during master upgrade: %v", job.Status.Failed)
	}
}
// Test waits for the upgrade to complete, and then verifies that the
// cuda pod started by the gpu job can successfully finish.
Test waits for the upgrade to complete, and then verifies that the
cuda pod started by the gpu job can successfully finish.
// Test waits for the upgrade to complete and then verifies that the // cuda pod started by the gpu job can successfully finish .
func (t *NvidiaGPUUpgradeTest) Test(f *framework.Framework, done <-chan struct{}, upgrade UpgradeType) {
	<-done
	ginkgo.By("Verifying gpu job success")
	scheduling.VerifyJobNCompletions(f, completions)
	if upgrade == MasterUpgrade || upgrade == ClusterUpgrade {
		job, err := e2ejob.GetJob(f.ClientSet, f.Namespace.Name, "cuda-add")
		framework.ExpectNoError(err)
		framework.ExpectEqual(job.Status.Failed, 0, "Job pods failed during master upgrade: %v", job.Status.Failed)
	}
}
func ( t * NvidiaGPUUpgradeTest ) Test ( f * framework . Framework , done <- chan struct { } , upgrade UpgradeType ) { <- done ginkgo . By ( " " ) scheduling . VerifyJobNCompletions ( f , completions ) if upgrade == MasterUpgrade || upgrade == ClusterUpgrade { job , err := e2ejob . GetJob ( f . ClientSet , f . Namespace . Name , " " ) framework . ExpectNoError ( err ) framework . ExpectEqual ( job . Status . Failed , 0 , " " , job . Status . Failed ) } }
Test waits for the upgrade to complete, and then verifies that the
cuda pod started by the gpu job can successfully finish.
Test waits for the upgrade to complete and then verifies that the cuda pod started by the gpu job can successfully finish .
// MasterUpgrade should be totally hitless.