Skip to content

Commit

Permalink
Skip gpu_hlo_runner_test if input is not provided (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmakevic-amd authored and hsharsha committed Jan 7, 2025
1 parent 0a9ee68 commit 6a03a2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions xla/service/gpu/tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion xla/service/gpu/tests/gpu_hlo_runner_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6a03a2d

Please sign in to comment.