Skip to content

Commit 8be30ca

Browse files
committed
Fix xts test result assertion.
- Handle tests result with "fail" value. Bug: b/533039176
1 parent 6282a08 commit 8be30ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

e2etests/cvd/common/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ func RunXts(t *testing.T, cuttlefishArgs FetchAndCreateArgs, xtsArgs XtsArgs) {
629629
testname := fmt.Sprintf("%s#%s", xtsTestCase.Name, xtsTest.Name)
630630
t.Run(testname, func(t *testing.T) {
631631
log.Printf("%s result: %s", testname, xtsTest.Result)
632-
if xtsTest.Result == "failed" {
632+
if strings.HasPrefix(xtsTest.Result, "fail") {
633633
t.Error("XTS test failed, see logs")
634634
}
635635
})

0 commit comments

Comments
 (0)