Skip to content

Commit

Permalink
covermode should be atomic if there are goroutines
Browse files Browse the repository at this point in the history
Signed-off-by: Ying Li <ying.li@docker.com>
  • Loading branch information
cyli committed Sep 23, 2016
1 parent eb802aa commit b91f182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildscripts/covertest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_coverprofile_filename(pkg, buildtags):
buildtags = "." + buildtags.replace(' ', '.')
return pkg.replace('/', '-').replace(' ', '_') + buildtags + ".coverage.txt"

def run_test_with_coverage(buildtags="", coverdir=".cover", pkgs=None, opts="", covermode="count"):
def run_test_with_coverage(buildtags="", coverdir=".cover", pkgs=None, opts="", covermode="atomic"):
"""
Run go test with coverage over the the given packages, with the following options
"""
Expand Down

0 comments on commit b91f182

Please sign in to comment.