From ba779e9b269723a28f1c981a9ae46ac53c7bf079 Mon Sep 17 00:00:00 2001 From: Eric Fritz Date: Fri, 2 Dec 2022 13:12:26 -0600 Subject: [PATCH] codeintel-qa: Fix working directory in scripts (#45093) --- dev/codeintel-qa/scripts/clone-and-index.sh | 4 ++-- dev/codeintel-qa/scripts/clone.sh | 4 ++-- dev/codeintel-qa/scripts/download.sh | 4 ++-- dev/codeintel-qa/scripts/go-index.sh | 4 ++-- dev/codeintel-qa/scripts/upload.sh | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dev/codeintel-qa/scripts/clone-and-index.sh b/dev/codeintel-qa/scripts/clone-and-index.sh index 357cddc5f85..463aaa7f135 100755 --- a/dev/codeintel-qa/scripts/clone-and-index.sh +++ b/dev/codeintel-qa/scripts/clone-and-index.sh @@ -1,8 +1,8 @@ #!/usr/bin/env bash set -eu -cd "$(dirname "${BASH_SOURCE[0]}")/.." -SCRIPTDIR=$(realpath './scripts') +cd "$(dirname "${BASH_SOURCE[0]}")/../../.." +SCRIPTDIR=$(realpath './dev/codeintel-qa/scripts') declare -A REVS=( # This repository has not been changed diff --git a/dev/codeintel-qa/scripts/clone.sh b/dev/codeintel-qa/scripts/clone.sh index c4bbbf107ee..c31a18595b2 100755 --- a/dev/codeintel-qa/scripts/clone.sh +++ b/dev/codeintel-qa/scripts/clone.sh @@ -1,8 +1,8 @@ #!/usr/bin/env bash set -eu -cd "$(dirname "${BASH_SOURCE[0]}")/.." -DATADIR=$(realpath './testdata') +cd "$(dirname "${BASH_SOURCE[0]}")/../../.." +DATADIR=$(realpath './dev/codeintel-qa/testdata') REPODIR="${DATADIR}/repos" NAME="$1" diff --git a/dev/codeintel-qa/scripts/download.sh b/dev/codeintel-qa/scripts/download.sh index d746016273a..a63d5730928 100755 --- a/dev/codeintel-qa/scripts/download.sh +++ b/dev/codeintel-qa/scripts/download.sh @@ -4,8 +4,8 @@ export CLOUDSDK_PYTHON=/usr/bin/python3 set -eu -cd "$(dirname "${BASH_SOURCE[0]}")/../" -DATADIR=$(realpath './testdata') +cd "$(dirname "${BASH_SOURCE[0]}")/../../.." +DATADIR=$(realpath './dev/codeintel-qa/testdata') INDEXDIR="${DATADIR}/indexes" # Ensure target dir exists diff --git a/dev/codeintel-qa/scripts/go-index.sh b/dev/codeintel-qa/scripts/go-index.sh index 6d93ae30402..a3640ebb9b2 100755 --- a/dev/codeintel-qa/scripts/go-index.sh +++ b/dev/codeintel-qa/scripts/go-index.sh @@ -1,8 +1,8 @@ #!/usr/bin/env bash set -eux -cd "$(dirname "${BASH_SOURCE[0]}")/.." -DATADIR=$(realpath './testdata') +cd "$(dirname "${BASH_SOURCE[0]}")/../../.." +DATADIR=$(realpath './dev/codeintel-qa/testdata') REPODIR="${DATADIR}/repos" INDEXDIR="${DATADIR}/indexes" diff --git a/dev/codeintel-qa/scripts/upload.sh b/dev/codeintel-qa/scripts/upload.sh index 72a24bfdec9..0254d5c9eaf 100755 --- a/dev/codeintel-qa/scripts/upload.sh +++ b/dev/codeintel-qa/scripts/upload.sh @@ -1,8 +1,8 @@ #!/usr/bin/env bash set -eu -cd "$(dirname "${BASH_SOURCE[0]}")/.." -DATADIR=$(realpath './testdata') +cd "$(dirname "${BASH_SOURCE[0]}")/../../.." +DATADIR=$(realpath './dev/codeintel-qa/testdata') INDEXDIR="${DATADIR}/indexes" # Compress and upload all index files