From 6a03a2d030dcab508aa8aba6ae28d33abb4995f6 Mon Sep 17 00:00:00 2001 From: mmakevic-amd Date: Wed, 20 Nov 2024 19:22:10 +0100 Subject: [PATCH] Skip gpu_hlo_runner_test if input is not provided (#71) --- xla/service/gpu/tests/BUILD | 1 + xla/service/gpu/tests/gpu_hlo_runner_test.cc | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/xla/service/gpu/tests/BUILD b/xla/service/gpu/tests/BUILD index abf7395bc024a..5ee93e95d3d06 100644 --- a/xla/service/gpu/tests/BUILD +++ b/xla/service/gpu/tests/BUILD @@ -224,6 +224,7 @@ xla_test( name = "gpu_hlo_runner_test", srcs = ["gpu_hlo_runner_test.cc"], backends = ["gpu"], + tags=["no_oss"], deps = [ ":gpu_codegen_test", "//xla:error_spec", diff --git a/xla/service/gpu/tests/gpu_hlo_runner_test.cc b/xla/service/gpu/tests/gpu_hlo_runner_test.cc index af28627561f95..bcc263d6f520a 100644 --- a/xla/service/gpu/tests/gpu_hlo_runner_test.cc +++ b/xla/service/gpu/tests/gpu_hlo_runner_test.cc @@ -41,7 +41,9 @@ class HloRunnerTest : public GpuCodegenTest {}; TEST_F(HloRunnerTest, RunSingle) { std::ifstream ifs("input.hlo"); - ASSERT_TRUE(ifs.good()); + if(ifs.fail()) { + GTEST_SKIP() << "No input HLO file provided!"; + } std::stringstream buffer; buffer << ifs.rdbuf();