diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2017-02-08 20:48:51 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2017-02-08 20:48:51 +0000 |
commit | b139d2cc931efb5c2699e2d46ce2ba044f8fd4e6 (patch) | |
tree | 28dae04f50c7428289bc4a5ca9b062e911f89753 /start-container-none.sh | |
parent | c219fac91e13b89fd95994abacd6129cb09ffe06 (diff) |
start-container*.sh: Add --task parameter.
Change-Id: I869c0693531b05958e4e482d15d901da9b57ca71
Diffstat (limited to 'start-container-none.sh')
-rwxr-xr-x | start-container-none.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/start-container-none.sh b/start-container-none.sh index a77fd876..5cd0255d 100755 --- a/start-container-none.sh +++ b/start-container-none.sh @@ -15,13 +15,14 @@ set -e # a remote connexion to the container usage() { - echo Usage: $0 --arch container-arch --distro flavour [--session-host host] [--session-name name] + echo "Usage: $0 --arch container-arch --distro flavour [--session-host host] [--session-name name] [--task {build|test}]" echo echo " container-arch: architecture (eg: amd64, i386, arm64, armhf)" echo " distro: distribution (eg: trusty)" echo " session-host: hostname where the container will run, defaults to localhost" echo " useful if the name resolution does not work correctly" echo " session-name: session, in case the default '$BUILD_NUMBER-$JOB_NAME' is not suitable" + echo " task: type of container (build or test, default=build)" exit 1 } @@ -35,6 +36,7 @@ container_arch= distro= session_host= session_name= +task="build" while [ $# -ge 1 ] do @@ -59,6 +61,11 @@ do [ x${session_name} = x ] && usage shift 2 ;; + --task) + task=$2 + [ x${task} = x ] && usage + shift 2 + ;; *) echo "Unsupported option: $1" usage |