Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create directories and more output on fail #392

Merged
merged 3 commits into from
Dec 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/gz_src_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ class CmdLine : public ::testing::Test
// instead of on teardown leaves the folder intact for debugging if needed
common::removeAll(testCachePath);
ASSERT_TRUE(common::createDirectories(testCachePath));
ASSERT_TRUE(common::createDirectories(
common::joinPaths(testCachePath, "fuel.gazebosim.org")));
ASSERT_TRUE(common::createDirectories(
common::joinPaths(testCachePath, "fuel.ignitionrobotics.org")));

setenv("IGN_FUEL_CACHE_PATH", this->testCachePath.c_str(), true);
}

Expand Down Expand Up @@ -85,7 +90,7 @@ TEST_F(CmdLine, ModelListFail)

EXPECT_NE(this->stdOutBuffer.str().find("Invalid URL"),
std::string::npos) << this->stdOutBuffer.str();
EXPECT_TRUE(this->stdErrBuffer.str().empty());
EXPECT_TRUE(this->stdErrBuffer.str().empty()) << this->stdErrBuffer.str();
}

/////////////////////////////////////////////////
Expand Down
Loading