Skip to content

Commit

Permalink
Check for gve in gvnic tests as well (#840)
Browse files Browse the repository at this point in the history
* Check for gve in gvnic tests as well

* Change && to ||

* Revert || back to &&
  • Loading branch information
drewhli authored Oct 9, 2023
1 parent 2db604c commit 38f4e68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions imagetest/test_suites/network/gvnic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ func CheckGVNICPresent(interfaceName string) error {
}
s := strings.Split(data, "/")
driver := s[len(s)-1]
if driver != "gvnic" {
errMsg := fmt.Sprintf("Driver set as %v want gvnic", driver)
if driver != "gvnic" && driver != "gve" {
errMsg := fmt.Sprintf("Driver set as %v want gvnic or gve", driver)
return errors.New(errMsg)
}
return nil
Expand Down
4 changes: 2 additions & 2 deletions imagetest/test_suites/networkperf/gvnic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ func CheckGVNICPresent(interfaceName string) error {
}
s := strings.Split(data, "/")
driver := s[len(s)-1]
if driver != "gvnic" {
errMsg := fmt.Sprintf("Driver set as %v want gvnic", driver)
if driver != "gvnic" && driver != "gve" {
errMsg := fmt.Sprintf("Driver set as %v want gvnic or gve", driver)
return errors.New(errMsg)
}
return nil
Expand Down

0 comments on commit 38f4e68

Please sign in to comment.