Skip to content

Commit

Permalink
Disable rendering tests that are failing on github actions (#2480)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 authored Jul 16, 2024
1 parent aadc7a6 commit 335e363
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/integration/camera_video_record_system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ class CameraVideoRecorderTest : public InternalFixture<::testing::Test>
/////////////////////////////////////////////////
TEST_F(CameraVideoRecorderTest, GZ_UTILS_TEST_DISABLED_ON_MAC(RecordVideo))
{
// This test fails on Github Actions. Skip it for now.
// Note: The GITHUB_ACTIONS environment variable is automatically set when
// running on Github Actions.
std::string githubAction;
if (common::env("GITHUB_ACTIONS", githubAction))
{
GTEST_SKIP();
}

// Start server
ServerConfig serverConfig;
serverConfig.SetSdfFile(std::string(PROJECT_SOURCE_PATH) +
Expand Down
9 changes: 9 additions & 0 deletions test/integration/distortion_camera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ void imageCb(const msgs::Image &_msg)
TEST_F(DistortionCameraTest,
GZ_UTILS_TEST_DISABLED_ON_MAC(DistortionCameraBox))
{
// This test fails on Github Actions. Skip it for now.
// Note: The GITHUB_ACTIONS environment variable is automatically set when
// running on Github Actions.
std::string githubAction;
if (common::env("GITHUB_ACTIONS", githubAction))
{
GTEST_SKIP();
}

// Start server
ServerConfig serverConfig;
const auto sdfFile = common::joinPaths(std::string(PROJECT_SOURCE_PATH),
Expand Down
9 changes: 9 additions & 0 deletions test/integration/reset_sensors.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,15 @@ common::Image toImage(const msgs::Image &_msg)
/// are removed and then added back
TEST_F(ResetFixture, GZ_UTILS_TEST_DISABLED_ON_MAC(HandleReset))
{
// This test fails on Github Actions. Skip it for now.
// Note: The GITHUB_ACTIONS environment variable is automatically set when
// running on Github Actions.
std::string githubAction;
if (common::env("GITHUB_ACTIONS", githubAction))
{
GTEST_SKIP();
}

gz::sim::ServerConfig serverConfig;

const std::string sdfFile = common::joinPaths(PROJECT_SOURCE_PATH,
Expand Down
9 changes: 9 additions & 0 deletions test/integration/shader_param_system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ void imageCb(const msgs::Image &_msg)
// custom material shaders
TEST_F(ShaderParamTest, GZ_UTILS_TEST_DISABLED_ON_MAC(ShaderParam))
{
// This test fails on Github Actions. Skip it for now.
// Note: The GITHUB_ACTIONS environment variable is automatically set when
// running on Github Actions.
std::string githubAction;
if (common::env("GITHUB_ACTIONS", githubAction))
{
GTEST_SKIP();
}

// Start server
ServerConfig serverConfig;
const auto sdfFile = common::joinPaths(std::string(PROJECT_SOURCE_PATH),
Expand Down
9 changes: 9 additions & 0 deletions test/integration/wide_angle_camera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ void imageCb(const msgs::Image &_msg)
// The test checks the Wide Angle Camera readings
TEST_F(WideAngleCameraTest, GZ_UTILS_TEST_DISABLED_ON_MAC(WideAngleCameraBox))
{
// This test fails on Github Actions. Skip it for now.
// Note: The GITHUB_ACTIONS environment variable is automatically set when
// running on Github Actions.
std::string githubAction;
if (common::env("GITHUB_ACTIONS", githubAction))
{
GTEST_SKIP();
}

// Start server
ServerConfig serverConfig;
const auto sdfFile = common::joinPaths(std::string(PROJECT_SOURCE_PATH),
Expand Down

0 comments on commit 335e363

Please sign in to comment.