From 836a871b3a985e74004d709de8ca80db7705180c Mon Sep 17 00:00:00 2001 From: Ward Vandewege Date: Wed, 5 Jan 2022 13:54:16 -0500 Subject: [PATCH] 17417: add --only-build flag to the run-build-test-packages-one-target.sh script. Arvados-DCO-1.1-Signed-off-by: Ward Vandewege --- build/run-build-test-packages-one-target.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build/run-build-test-packages-one-target.sh b/build/run-build-test-packages-one-target.sh index 1c8296dfca..2e2e3cdb40 100755 --- a/build/run-build-test-packages-one-target.sh +++ b/build/run-build-test-packages-one-target.sh @@ -11,6 +11,8 @@ Syntax: --target Distribution to build packages for (default: debian10) +--only-build + Build only a specific package (or $ONLY_BUILD from environment) --upload If the build and test steps are successful, upload the packages to a remote apt repository (default: false) @@ -44,7 +46,7 @@ if ! [[ -d "$WORKSPACE" ]]; then fi PARSEDOPTS=$(getopt --name "$0" --longoptions \ - help,debug,upload,rc,target:,build-version: \ + help,debug,upload,rc,target:,only-build:,build-version: \ -- "" "$@") if [ $? -ne 0 ]; then exit 1 @@ -68,6 +70,9 @@ while [ $# -gt 0 ]; do --target) TARGET="$2"; shift ;; + --only-build) + ONLY_BUILD="$2"; shift + ;; --debug) DEBUG=" --debug" ;; @@ -93,6 +98,10 @@ done build_args+=(--target "$TARGET") +if [[ -n "$ONLY_BUILD" ]]; then + build_args+=(--only-build "$ONLY_BUILD") +fi + exit_cleanly() { trap - INT report_outcomes -- 2.30.2