ceph/qa/suites/rados/upgrade/luminous-x-singleton
Patrick Donnelly b39f9d06dc
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>
2018-06-26 11:48:38 -07:00
..
0-cluster
1-install
2-partial-upgrade
3-thrash
4-workload
5-workload
8-workload
.qa
%
6-finish-upgrade.yaml
7-mimic.yaml qa: fix symlinks indirectly pointing at qa to .qa 2018-06-26 11:48:38 -07:00
supported-random-distro$ qa: fix symlinks indirectly pointing at qa to .qa 2018-06-26 11:48:38 -07:00
thrashosds-health.yaml qa: fix symlinks indirectly pointing at qa to .qa 2018-06-26 11:48:38 -07:00