Skip to content

Commit

Permalink
Fix running ./script/test
Browse files Browse the repository at this point in the history
Executed tasks do not define image (it is defined in the pipeline
configuration). Therefore when running tests locally, we use the inputs
(i.e. the image) from the `grootfs` CI job
  • Loading branch information
danail-branekov committed Jan 22, 2020
1 parent 53523ec commit c5adcfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/test
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ usage() {

compile_fly_cmd() {
task_path=$1
image_args=("--inputs-from" "main/grootfs" "--image" "garden-ci-image")

cmd="fly -t $FLY_TARGET"
cmd=$cmd" e -c $task_path"
cmd=$cmd" e -p ${image_args[@]} -c $task_path"
cmd=$cmd" -i grootfs-git-repo=${PWD}"
cmd=$cmd" $FLY_ARGS"
cmd=$cmd" --"
Expand Down

0 comments on commit c5adcfb

Please sign in to comment.