]> git-server-git.apps.pok.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, 12 Feb 2019 16:12:49 +0000 (00:12 +0800)
commit3e57c0f640d44236ff5e050c83fab20b6bc31354
treee7824db7233ede730a47fe04f4d1a170456e50e4
parentb96102901cc006a792aac4bcb3323d3a662af82b
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