az/test: skip ut if no env vars found

This commit is contained in:
Minglei Jin 2024-10-22 15:02:10 +08:00
parent 2390532bb0
commit 6dbee3d08b
1 changed files with 5 additions and 0 deletions

View File

@ -86,6 +86,11 @@ TEST(AzTest, InterfaceTest) {
bool withcp = false;
code = azInitEnv();
if (code) {
std::cout << "ablob env init failed with: " << code << std::endl;
return;
}
GTEST_ASSERT_EQ(code, 0);
GTEST_ASSERT_EQ(tsS3Enabled, 1);