]> git.apps.os.sepia.ceph.com Git - ceph.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>
Tue, 29 Jan 2019 12:13:34 +0000 (20:13 +0800)
commit1a4ea3847785af1a089fda4165b921bb66e1ce37
treead0a47723afc0fa15819d710bab3884a662c3b19
parent923a7ae885a0d6a73c24d538a8cea2da53b4a7e9
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>
(cherry picked from commit a13a6f1d0b39a541896591cd04fc1980bb1acfee)

Conflicts:
src/log/test.cc: trivial resolution
src/log/test.cc