]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tests: save 9 characters for asok paths 12151/head
authorLoic Dachary <ldachary@redhat.com>
Fri, 18 Nov 2016 07:06:02 +0000 (08:06 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 23 Nov 2016 07:53:18 +0000 (08:53 +0100)
commit4df1b9c54b454e764f0503f4732e5025b33d3c04
tree0c527dacd591f862c9cd9899e17fcc456707cdda
parent427f357f0eed32c9ce17590ae9303a94e8b710e7
tests: save 9 characters for asok paths

For vstart.sh powered tests, save 9 characters in the path name
by replacing testdir/test- with td/t-

60 characters imposed by jenkins
9 characters for src/test
5 characters for td/t-

33 left (instead of 24) for the test to create asok such as out/client.admin.25327.asok

Moving these files outside of the build directory is a bad idea because
tests should only create/use files within the builddir and not write
outside of this directory. Doing so would make things more complicated
for cleanup in case the test fail and create other problems as a
consequence (filling out disk space, conflicting directories between
runs etc.).

For ceph-helpers.sh tests replace testdir with td, saving 5 characters.
This is not strictly necessary but keeps the directory names consistent:
if the developer wants to get rid of all the test leftovers, it is
enough to remove the a single directory: td.

Fixes: http://tracker.ceph.com/issues/16014
Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit cd72ff9f746fe13a245324dce2aa457d3c876331)

Conflicts:
.gitignore : test directories are not ignored in jewel
src/test/vstart_wrapper.sh : trivial context resolution
qa/workunits/ceph-helpers.sh
src/test/vstart_wrapper.sh