зеркало из https://github.com/Azure/aks-engine.git
fix(test/acs-engine-test/main.go): Mark build as passing unless we promote to failure (#1418)
This commit is contained in:
Родитель
e71d2cbde9
Коммит
c1f8a645d3
|
@ -6,7 +6,6 @@ import (
|
|||
"errors"
|
||||
"flag"
|
||||
"fmt"
|
||||
"log"
|
||||
"math/rand"
|
||||
"os"
|
||||
"os/exec"
|
||||
|
@ -149,7 +148,6 @@ func (m *TestManager) Run() error {
|
|||
var failureStr string
|
||||
testName := strings.Replace(dep.ClusterDefinition, "/", "-", -1)
|
||||
if errorInfo != nil {
|
||||
log.Printf("")
|
||||
if errorStat, ok := resMap[errorInfo.ErrName]; !ok {
|
||||
resMap[errorInfo.ErrName] = &ErrorStat{errorInfo: errorInfo, testCategory: dep.TestCategory, count: 1}
|
||||
} else {
|
||||
|
@ -180,6 +178,8 @@ func (m *TestManager) Run() error {
|
|||
result, _ := promote.RunPromoteToFailure(sa, promToFailInfo)
|
||||
if result == true {
|
||||
success[index] = false
|
||||
} else {
|
||||
success[index] = true
|
||||
}
|
||||
|
||||
// RecordTestRun QoS
|
||||
|
|
Загрузка…
Ссылка в новой задаче