Skip to content

Commit 05815e6

Browse files
committed
tests: properly disable parameterized tests in CI
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]> test: properly disabling parameterized tests Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent 1760518 commit 05815e6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

tests/cpp/test_compiled_modules.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ TEST_P(CppAPITests, CompiledModuleIsClose) {
4545
}
4646
}
4747

48-
#ifndef DISABLE_TEST_IN_CI
48+
#ifdef DISABLE_TEST_IN_CI
49+
50+
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CppAPITests);
51+
52+
#else
4953

5054
INSTANTIATE_TEST_SUITE_P(
5155
CompiledModuleForwardIsCloseSuite,

tests/cpp/test_modules_as_engines.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ TEST_P(CppAPITests, ModuleAsEngineIsClose) {
1717
ASSERT_TRUE(torch_tensorrt::tests::util::cosineSimEqual(jit_results[0], trt_results[0].reshape_as(jit_results[0])));
1818
}
1919

20-
#ifndef DISABLE_TEST_IN_CI
20+
#ifdef DISABLE_TEST_IN_CI
21+
22+
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CppAPITests);
23+
24+
#else
2125

2226
INSTANTIATE_TEST_SUITE_P(
2327
ModuleAsEngineForwardIsCloseSuite,

0 commit comments

Comments
 (0)