Skip to content

Commit

Permalink
test: properly disabling parameterized tests
Browse files Browse the repository at this point in the history
Signed-off-by: Naren Dasan <naren@narendasan.com>
Signed-off-by: Naren Dasan <narens@nvidia.com>
  • Loading branch information
narendasan committed Jul 6, 2023
1 parent 4f2c708 commit f14bc21
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/cpp/test_modules_as_engines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ TEST_P(CppAPITests, ModuleAsEngineIsClose) {
ASSERT_TRUE(torch_tensorrt::tests::util::cosineSimEqual(jit_results[0], trt_results[0].reshape_as(jit_results[0])));
}

#ifndef DISABLE_TEST_IN_CI
#ifdef DISABLE_TEST_IN_CI

GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CppAPITests);

#else

INSTANTIATE_TEST_SUITE_P(
ModuleAsEngineForwardIsCloseSuite,
Expand Down

0 comments on commit f14bc21

Please sign in to comment.