Update tests to expect RBE not supported on linux.

Bug: 354280127

Test: Passes on linux
Test: Treehugger for the rest.
Change-Id: Ic1546a153e7e761a2132409743650cbf0a0b1ba6
This commit is contained in:
Christopher Ferris
2024-07-25 12:42:47 -07:00
parent 13c6231218
commit 1db36e3888
2 changed files with 12 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ import (
"io/ioutil"
"os"
"path/filepath"
"runtime"
"strings"
"testing"
@@ -26,6 +27,10 @@ import (
)
func TestDumpRBEMetrics(t *testing.T) {
// RBE is only supported on linux.
if runtime.GOOS != "linux" {
t.Skip("RBE is only supported on linux")
}
ctx := testContext()
tests := []struct {
description string
@@ -82,6 +87,10 @@ func TestDumpRBEMetrics(t *testing.T) {
}
func TestDumpRBEMetricsErrors(t *testing.T) {
// RBE is only supported on linux.
if runtime.GOOS != "linux" {
t.Skip("RBE is only supported on linux")
}
ctx := testContext()
tests := []struct {
description string