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

Fixes: http://tracker.ceph.com/issues/23477
Signed-off-by: Shengjing Zhu <zhsj@umcloud.com>
(cherry picked from commit d446915ea4c02c3874d60067f88eb6492c1bf5df)

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();