Skip to content

Commit 21dac19

Browse files
authored
Add/amend logging to use TestTopologyBasic.Name instead of TestTopologyMetadata.Name (#116)
Co-authored-by: Johan Jatko <Johan Jatko>
1 parent de73e87 commit 21dac19

15 files changed

+21
-8
lines changed

pkg/scheduler/actions/allocate/allocateElastic_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ func TestHandleElasticAllocation(t *testing.T) {
2525
defer controller.Finish()
2626

2727
for testNumber, testMetadata := range getElasticTestsMetadata() {
28+
t.Logf("Running test %d: %s", testNumber, testMetadata.TestTopologyBasic.Name)
29+
2830
ssn := test_utils.BuildSession(testMetadata.TestTopologyBasic, controller)
2931
allocateAction := allocate.New()
3032
allocateAction.Execute(ssn)

pkg/scheduler/actions/allocate/allocateFractionalGpu_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ func TestHandleFractionalGPUAllocation(t *testing.T) {
2828

2929
testsMetadata := getFractionalGPUTestsMetadata()
3030
for testNumber, testMetadata := range testsMetadata {
31+
t.Logf("Running test %d: %s", testNumber, testMetadata.TestTopologyBasic.Name)
32+
3133
ssn := test_utils.BuildSession(testMetadata.TestTopologyBasic, controller)
3234
allocateAction := allocate.New()
3335
allocateAction.Execute(ssn)

pkg/scheduler/actions/allocate/allocateGang_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ func TestHandleGangAllocation(t *testing.T) {
2828

2929
func runTests(t *testing.T, testsMetadata []integration_tests_utils.TestTopologyMetadata, controller *Controller) {
3030
for testNumber, testMetadata := range testsMetadata {
31+
t.Logf("Running test %d: %s", testNumber, testMetadata.TestTopologyBasic.Name)
32+
3133
ssn := test_utils.BuildSession(testMetadata.TestTopologyBasic, controller)
3234
allocateAction := allocate.New()
3335
allocateAction.Execute(ssn)

pkg/scheduler/actions/allocate/allocateGpuMemory_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ func TestHandleMemoryGPUAllocation(t *testing.T) {
2727

2828
testsMetadata := getMemoryGPUTestsMetadata()
2929
for testNumber, testMetadata := range testsMetadata {
30+
t.Logf("Running test %d: %s", testNumber, testMetadata.TestTopologyBasic.Name)
31+
3032
ssn := test_utils.BuildSession(testMetadata.TestTopologyBasic, controller)
3133
allocateAction := allocate.New()
3234
allocateAction.Execute(ssn)

pkg/scheduler/actions/allocate/allocateMIG_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ func TestHandleMIGAllocation(t *testing.T) {
3030

3131
testsMetadata := getMIGTestsMetadata()
3232
for testNumber, testMetadata := range testsMetadata {
33+
t.Logf("Running test %d: %s", testNumber, testMetadata.TestTopologyBasic.Name)
34+
3335
ssn := test_utils.BuildSession(testMetadata.TestTopologyBasic, controller)
3436
allocateAction := allocate.New()
3537
allocateAction.Execute(ssn)

pkg/scheduler/actions/allocate/allocate_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ func TestHandleAllocation(t *testing.T) {
3131
defer controller.Finish()
3232
testsMetadata := getTestsMetadata()
3333
for testNumber, testMetadata := range testsMetadata {
34+
t.Logf("Running test %d: %s", testNumber, testMetadata.TestTopologyBasic.Name)
35+
3436
ssn := test_utils.BuildSession(testMetadata.TestTopologyBasic, controller)
3537
allocateAction := allocate.New()
3638
allocateAction.Execute(ssn)

pkg/scheduler/actions/consolidation/consolidation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func TestConsolidation(t *testing.T) {
2727
testsMetadata := getTestsMetadata()
2828

2929
for testNumber, testMetadata := range testsMetadata {
30-
fmt.Printf("Running test %d/%d: %s\n", testNumber, len(testsMetadata), testMetadata.Name)
30+
fmt.Printf("Running test %d/%d: %s\n", testNumber, len(testsMetadata), testMetadata.TestTopologyBasic.Name)
3131
ssn := test_utils.BuildSession(testMetadata.TestTopologyBasic, controller)
3232
consolidationAction := consolidation.New()
3333
consolidationAction.Execute(ssn)

pkg/scheduler/actions/preempt/preemptGang_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func TestHandleGangPreempt(t *testing.T) {
2626
defer controller.Finish()
2727
testsMetadata := getTestsGangMetadata()
2828
for testNumber, testMetadata := range testsMetadata {
29+
t.Logf("Running Test %d: %s", testNumber, testMetadata.TestTopologyBasic.Name)
2930

3031
ssn := test_utils.BuildSession(testMetadata.TestTopologyBasic, controller)
3132
preemptAction := preempt.New()

pkg/scheduler/actions/preempt/preemptMIG_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func TestMIGPreempt(t *testing.T) {
2626
defer controller.Finish()
2727
testsMetadata := getMIGTestsMetadata()
2828
for testNumber, testMetadata := range testsMetadata {
29-
t.Logf("Running Test %d: %s", testNumber, testMetadata.Name)
29+
t.Logf("Running Test %d: %s", testNumber, testMetadata.TestTopologyBasic.Name)
3030

3131
ssn := test_utils.BuildSession(testMetadata.TestTopologyBasic, controller)
3232
preemptAction := preempt.New()

pkg/scheduler/actions/preempt/preempt_elastic_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func TestHandlePreemptElastic(t *testing.T) {
2626
defer controller.Finish()
2727
testsMetadata := getElasticTestsMetadata()
2828
for testNumber, testMetadata := range testsMetadata {
29-
t.Logf("Running Test %d: %s", testNumber, testMetadata.Name)
29+
t.Logf("Running Test %d: %s", testNumber, testMetadata.TestTopologyBasic.Name)
3030

3131
ssn := test_utils.BuildSession(testMetadata.TestTopologyBasic, controller)
3232
preemptAction := preempt.New()

0 commit comments

Comments
 (0)