diff options
author | Dave Wallace <dwallacelf@gmail.com> | 2021-01-14 14:27:47 -0500 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2021-01-27 14:05:20 -0500 |
commit | 072d36d5e44ce5c0215637bb384b2a499b56f354 (patch) | |
tree | bb0fd3d29fb86514e9f1bfd5436a27a73721e516 /docker | |
parent | e1ff59089653304fff894e24eb7c8c574f270c63 (diff) |
Import jjb test bash functions from vpp repo.
- Also move get_gerrit_refspec() from docker/scripts/lib_common.sh
into sandbox_test_functions.sh
Change-Id: I8f4a1648da678361c7ab364724f488571c91f0b7
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'docker')
-rw-r--r-- | docker/scripts/lib_common.sh | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/docker/scripts/lib_common.sh b/docker/scripts/lib_common.sh index 17dcc144a..3449bf398 100644 --- a/docker/scripts/lib_common.sh +++ b/docker/scripts/lib_common.sh @@ -124,23 +124,6 @@ remove_pyc_files_and_pycache_dirs() { -print -exec rm -rf {} \; 2>/dev/null || true } -# Get the refspec for the specified project branch at HEAD -# -# Arguments: -# $1 - branch -# $2 - project (Optional: defaults to 'vpp') -get_gerrit_refspec() { - local branch=${1:-"master"} - local project=${2:-"vpp"} - local query="$(ssh -p 29418 gerrit.fd.io gerrit query status:merged project:$project branch:$branch limit:1 --format=JSON --current-patch-set | tr ',' '\n' | grep refs | cut -d'"' -f4)" - - if [ -z "$query" ] ; then - echo "ERROR: Invalid project ($1) or branch ($2)" - else - echo "$query" - fi -} - # Well-known filename variables export APT_DEBIAN_DOCKER_GPGFILE="docker.linux.debian.gpg" export APT_UBUNTU_DOCKER_GPGFILE="docker.linux.ubuntu.gpg" |