Skip to content

Commit

Permalink
CI: Add debug infos for specs retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
Anaethelion committed Apr 20, 2021
1 parent 7eae5ee commit b534d43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/run-repository.sh
Expand Up @@ -43,7 +43,7 @@ ELASTICSEARCH_BUILD_HASH=$(curl -sSk $external_elasticsearch_url | jq -r '.versi
echo -e "\033[34;1mINFO:\033[0m Download Elasticsearch specs... \033[0m"
docker run --volume=$HOME/workspace/tmp:/tmp --workdir=/go-elasticsearch/internal/build --rm elastic/go-elasticsearch /bin/sh -c "
go mod download
go run main.go download-spec -o /tmp
go run main.go download-spec -o /tmp -d
"

echo -e "\033[34;1mINFO:\033[0m Execute [$TEST_SUITE] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m"
Expand Down
3 changes: 3 additions & 0 deletions internal/build/cmd/tools/commands/spec/command.go
Expand Up @@ -125,6 +125,9 @@ func (c Command) writeFileToDest(filename string, data []byte) error {
if err := ioutil.WriteFile(path, data, 0644); err != nil {
return fmt.Errorf("cannot write file: %s", err)
}
if c.Debug {
log.Printf("Successfuly written file to : %s", path)
}
return nil
}

Expand Down

0 comments on commit b534d43

Please sign in to comment.