diff options
author | Patrick Donnelly <pdonnell@redhat.com> | 2018-06-26 20:46:28 +0200 |
---|---|---|
committer | Patrick Donnelly <pdonnell@redhat.com> | 2018-06-26 20:48:38 +0200 |
commit | b39f9d06dc4b17a1f739dcbc0c63dd38ff2c2298 (patch) | |
tree | d73dc983ad7e0ab5eafa4b1122a1dbb2141b7f33 /qa/suites/mixed-clients | |
parent | qa: add .qa helper link (diff) | |
download | ceph-b39f9d06dc4b17a1f739dcbc0c63dd38ff2c2298.tar.xz ceph-b39f9d06dc4b17a1f739dcbc0c63dd38ff2c2298.zip |
qa: fix symlinks indirectly pointing at qa to .qa
Building on the previous commit.
Command used:
$ find suites/ -type l -and -not -name .qa -execdir ~/fix.sh {} \;
fix.sh:
#!/bin/bash
link="$(readlink "$1")"
echo $link
dirlink="$(dirname "$link")"
baselink="$(basename "$link")"
while true; do
echo $dirlink
if [ "$dirlink" -ef ~/ceph/qa ]; then
ln -nsf ".qa/$baselink" "$1"
exit
else
baselink="$(basename "$dirlink")/$baselink"
dirlink="$(dirname "$dirlink")"
if [ "$dirlink" -ef . ]; then
break
fi
fi
done
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Diffstat (limited to 'qa/suites/mixed-clients')
l--------- | qa/suites/mixed-clients/basic/objectstore | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/suites/mixed-clients/basic/objectstore b/qa/suites/mixed-clients/basic/objectstore index 4c8ebadfde8..c40bd326145 120000 --- a/qa/suites/mixed-clients/basic/objectstore +++ b/qa/suites/mixed-clients/basic/objectstore @@ -1 +1 @@ -../../../objectstore
\ No newline at end of file +.qa/objectstore
\ No newline at end of file |