Lines Matching defs:result
21 resultPathFlag = "--result-path"
22 resultFileFlag = "--result-file"
33 // TestResult is the structure of the test result json file
36 Result string `json:"result"`
95 return defaultResult, fmt.Errorf("failed to process test result: no test result found")
98 return defaultResult, fmt.Errorf("failed to process test result: no matched test result found")
101 logrus.Infof("test case %s on device %s finished, the result is %s", testCase, device, rs[0].Status)
126 // processResult parse the test result file
131 logrus.Errorf("Failed to read from result file %s, error: %s", resultFile, err.Error())
135 var result []TestResult
136 if err := json.Unmarshal(data, &result); err != nil {
137 logrus.Errorf("Failed to unmarshal test result %s into json array, error: %s", string(data), err.Error())
142 for _, r := range result {