Merge pull request #101889 from pacoxu/add-e2e-log-cleanup
e2e: add log for running which cleanup action
This commit is contained in:
		@@ -17,6 +17,9 @@ limitations under the License.
 | 
				
			|||||||
package framework
 | 
					package framework
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import (
 | 
					import (
 | 
				
			||||||
 | 
						e2elog "k8s.io/kubernetes/test/e2e/framework/log"
 | 
				
			||||||
 | 
						"reflect"
 | 
				
			||||||
 | 
						"runtime"
 | 
				
			||||||
	"sync"
 | 
						"sync"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -70,6 +73,7 @@ func RunCleanupActions() {
 | 
				
			|||||||
	}()
 | 
						}()
 | 
				
			||||||
	// Run unlocked.
 | 
						// Run unlocked.
 | 
				
			||||||
	for _, fn := range list {
 | 
						for _, fn := range list {
 | 
				
			||||||
 | 
							e2elog.Logf("Running Cleanup Action: %v", runtime.FuncForPC(reflect.ValueOf(fn).Pointer()).Name())
 | 
				
			||||||
		fn()
 | 
							fn()
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user