Skip to content

Commit

Permalink
disable custom log output in test
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-cit committed Oct 30, 2024
1 parent cc75059 commit e581b75
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func TestIMCloudBuildWorkspaceGitHub(t *testing.T) {
}
if latestWorkflowRunStatus == "TIMEOUT" || latestWorkflowRunStatus == "FAILURE" {
t.Logf("%v", build[0])
utils.PrintLog(t, "TestIMCloudBuildWorkspaceGitHub", projectID)
// utils.PrintLog(t, "TestIMCloudBuildWorkspaceGitHub", projectID)
t.Fatalf("workflow %s failed with failureInfo %s", build[0].Get("id"), build[0].Get("failureInfo"))
}
return true, nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func TestIMCloudBuildWorkspaceGitLab(t *testing.T) {
}
if latestWorkflowRunStatus == "TIMEOUT" || latestWorkflowRunStatus == "FAILURE" {
t.Logf("%v", build[0])
utils.PrintLog(t, "TestIMCloudBuildWorkspaceGitLab", projectID)
// utils.PrintLog(t, "TestIMCloudBuildWorkspaceGitLab", projectID)
t.Fatalf("workflow %s failed with status %s", build[0].Get("id"), latestWorkflowRunStatus)
return false, nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func TestTFCloudBuildBuilderGitHub(t *testing.T) {
}
if latestWorkflowRunStatus == "TIMEOUT" || latestWorkflowRunStatus == "FAILURE" {
t.Logf("%v", build[0])
utils.PrintLog(t, "TestTFCloudBuildBuilderGitHub", projectID)
// utils.PrintLog(t, "TestTFCloudBuildBuilderGitHub", projectID)
t.Fatalf("workflow %s failed with failureInfo %s", build[0].Get("id"), build[0].Get("failureInfo"))
}
return true, nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func TestTFCloudBuildBuilderGitLab(t *testing.T) {
}
if latestWorkflowRunStatus == "TIMEOUT" || latestWorkflowRunStatus == "FAILURE" {
t.Logf("%v", build[0])
utils.PrintLog(t, "TestTFCloudBuildBuilderGitLab", projectID)
// utils.PrintLog(t, "TestTFCloudBuildBuilderGitLab", projectID)
t.Fatalf("workflow %s failed with failureInfo %s", build[0].Get("id"), build[0].Get("failureInfo"))
}
return true, nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func TestCloudBuildWorkspaceSimpleGitHub(t *testing.T) {
}
if latestWorkflowRunStatus == "TIMEOUT" || latestWorkflowRunStatus == "FAILURE" {
t.Logf("%v", build[0])
utils.PrintLog(t, "TestCloudBuildWorkspaceSimpleGitHub", projectID)
// utils.PrintLog(t, "TestCloudBuildWorkspaceSimpleGitHub", projectID)
t.Fatalf("workflow %s failed with failureInfo %s", build[0].Get("id"), build[0].Get("failureInfo"))
}
return true, nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func TestCloudBuildWorkspaceSimpleGitLab(t *testing.T) {
}
if latestWorkflowRunStatus == "TIMEOUT" || latestWorkflowRunStatus == "FAILURE" {
t.Logf("%v", build[0])
utils.PrintLog(t, "TestCloudBuildWorkspaceSimpleGitLab", projectID)
// utils.PrintLog(t, "TestCloudBuildWorkspaceSimpleGitLab", projectID)
t.Fatalf("workflow %s failed with status %s", build[0].Get("id"), latestWorkflowRunStatus)
return false, nil
}
Expand Down

0 comments on commit e581b75

Please sign in to comment.