Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit e9b1abb

Browse files
author
James O. D. Hunt
committed
scripts: Make tests repo variable global
Move a variable to the top-level for a future change. Signed-off-by: James O. D. Hunt <[email protected]>
1 parent ab9a4e8 commit e9b1abb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.ci/static-checks.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ set -e
1515
cidir=$(dirname "$0")
1616
source "${cidir}/lib.sh"
1717

18+
export tests_repo="${tests_repo:-github.com/kata-containers/tests}"
19+
export tests_repo_dir="${GOPATH}/src/${tests_repo}"
20+
1821
script_name=${0##*/}
1922

2023
repo=""
@@ -153,8 +156,7 @@ check_commits()
153156
{
154157
# Since this script is called from another repositories directory,
155158
# ensure the utility is built before running it.
156-
local self="$GOPATH/src/github.com/kata-containers/tests"
157-
(cd "$self" && make checkcommits)
159+
(cd "${tests_repo_dir}" && make checkcommits)
158160

159161
# Check the commits in the branch
160162
{

0 commit comments

Comments
 (0)