]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test: write log file to current directory
authorKefu Chai <kchai@redhat.com>
Wed, 26 Dec 2018 04:58:08 +0000 (12:58 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 26 Dec 2018 05:08:47 +0000 (13:08 +0800)
commita13a6f1d0b39a541896591cd04fc1980bb1acfee
treec2b26e64cf18e9135416cc0d1961840848c9bfd0
parent0ccdc799384801faa728d5429e82b522ee3b618b
test: write log file to current directory

instead of writing log files to '/tmp', write them to current directory.

by default, ctest runs the tests in ${CMAKE_CURRENT_BINARY_DIR}, so, in
this case, the log files are located in build/src/test/. this ensure
that current user has enough previledge to remove the log files.

this also allows multiple instances of 'unittest_log' to run in parallel.

See-also: http://tracker.ceph.com/issues/36737
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/log/test.cc