]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/common/test_util: skip it if /etc/os-release does not exist
authorKefu Chai <kchai@redhat.com>
Thu, 2 May 2019 15:48:56 +0000 (23:48 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 2 May 2019 16:09:15 +0000 (00:09 +0800)
commit61e4a521b29c7bfb5d479f2cd2807c50a9f9cfd2
treeb301ed2d5112ecb72f8a1d43f2fcad781c83a73c
parentd4387d33ef20af8e0b80d0c6bd7329b416ab2de5
test/common/test_util: skip it if /etc/os-release does not exist

some GNU/Linux distros do not ship this file, and we should not fail the
test on them.

inspired by
http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/patches/ceph-skip-collect-sys-info-test.patch?id=48f19e60c4677e392ee2c23f28098cfcaf9d1710

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/common/CMakeLists.txt
src/test/common/test_util.cc