github.com/kubevela/workflow@v0.6.0/hack/e2e/modify_charts.sh (about)

     1  #!/usr/bin/env bash
     2  {
     3    echo '            - "-test.coverprofile=/workspace/data/e2e-profile.out"'
     4    echo '            - "__DEVEL__E2E"'
     5    echo '            - "-test.run=E2EMain"'
     6    echo '            - "-test.coverpkg=$(go list ./pkg/...| tr '"'"'\n'"'"' '"'"','"'"'| sed '"'"'s/,$//g'"'"')"'
     7  } > tmp_add.txt
     8  sed '/          args:/r tmp_add.txt' ./charts/vela-workflow/templates/workflow-controller.yaml > tmp.yaml
     9  rm ./charts/vela-workflow/templates/workflow-controller.yaml
    10  cat tmp.yaml
    11  mv tmp.yaml ./charts/vela-workflow/templates/workflow-controller.yaml