]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: remove distro_version assert in distro detect test 21052/head
authorShengjing Zhu <zhsj@umcloud.com>
Tue, 27 Mar 2018 05:09:57 +0000 (13:09 +0800)
committerShengjing Zhu <zhsj@umcloud.com>
Tue, 27 Mar 2018 05:09:57 +0000 (13:09 +0800)
VERSION_ID is optional in /etc/os-release, we removed the error
log in #17787, and the test also needs to be fixed.

Signed-off-by: Shengjing Zhu <zhsj@umcloud.com>
src/test/common/test_util.cc

index 288dd37db1dabe3a9fbb42474e4403e39a7de196..64eace923c20b93ca980e3b0124996f39c7760d7 100644 (file)
@@ -41,7 +41,6 @@ TEST(util, collect_sys_info)
   collect_sys_info(&sys_info, cct);
 
   ASSERT_TRUE(sys_info.find("distro") != sys_info.end());
-  ASSERT_TRUE(sys_info.find("distro_version") != sys_info.end());
   ASSERT_TRUE(sys_info.find("distro_description") != sys_info.end());
 
   cct->put();