From f76ba96613902219c4b9e888bc53057e0a32ced5 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Wed, 3 Sep 2025 08:57:27 -0500 Subject: [PATCH] skip tests on failure --- .../include/fixtures/fuse_fixture.hpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/repertory/repertory_test/include/fixtures/fuse_fixture.hpp b/repertory/repertory_test/include/fixtures/fuse_fixture.hpp index acf633c4..e0f49242 100644 --- a/repertory/repertory_test/include/fixtures/fuse_fixture.hpp +++ b/repertory/repertory_test/include/fixtures/fuse_fixture.hpp @@ -116,6 +116,10 @@ protected: current_directory = std::filesystem::current_path(); const auto mount_s3 = [&](bool as_remote) { + if (::testing::Test::HasFatalFailure()) { + return; + } + { auto test_directory = utils::path::combine( test::get_test_output_dir(), @@ -166,6 +170,10 @@ protected: }; const auto mount_sia = [&](bool as_remote) { + if (::testing::Test::HasFatalFailure()) { + return; + } + { auto test_directory = utils::path::combine( test::get_test_output_dir(), @@ -213,11 +221,11 @@ protected: }; const auto mount_remote = [&]() { - { - if (::testing::Test::HasFatalFailure()) { - return; - } + if (::testing::Test::HasFatalFailure()) { + return; + } + { mount_location2 = mount_location; auto test_directory = utils::path::combine( test::get_test_output_dir(),