Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ task :test => %w[fmt lint vet] do
Dir.glob("#{t}/**/*").select {|f| File.directory? f }.each do |pkg_folder| # recursively search for go packages
next if Dir.glob(File.join(pkg_folder, "*.go")).length == 0 # folder is a package if contains go modules
profile_tmp = "#{pkg_folder}/profile.tmp" # temp file to collect coverage data
system("go test -short -covermode=count -coverprofile=#{profile_tmp} #{pkg_folder}")
system({"PKG_CONFIG_LIBDIR" => "#{PKG_CONFIG_LIBDIR}"}, "go test -short -covermode=count -coverprofile=#{profile_tmp} #{pkg_folder}")
if File.file?(profile_tmp)
`cat #{profile_tmp} | tail -n +2 >> #{PROFILE}`
File.delete(profile_tmp)
Expand Down