10000 no directory work · Kami/codecov-python@3951597 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3951597

Browse files
committed
no directory work
1 parent 2b87d56 commit 3951597

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

codecov/__init__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,7 @@ def main(*argv, **kwargs):
481481
write('==> Processing gcov (disable by -X gcov)')
482482
if os.path.isdir(os.path.expanduser('~/Library/Developer/Xcode/DerivedData')):
483483
write(' Found OSX DerivedData')
484-
_directory = try_to_run("find ~/Library/Developer/Xcode/DerivedData -type f -name '*.gcno' -exec dirname {} \; | head -1")
485-
try_to_run("find ~/Library/Developer/Xcode/DerivedData -name '*.gcda' -exec gcov -pcbu -o '%s' {} +" % _directory)
484+
try_to_run("find ~/Library/Developer/Xcode/DerivedData -name '*.gcda' -exec gcov -pcbu {} +")
486485

487486
# xcode7
488487
profdata = try_to_run("find ~/Library/Developer/Xcode/DerivedData -name 'Coverage.profdata' | head -1")
@@ -494,11 +493,10 @@ def main(*argv, **kwargs):
494493
_proj = _file.split('/')[-2].split('.')[0]
495494
try_to_run('xcrun llvm-cov show -instr-profile "%s" "%s/%s" > "%s.coverage.txt"' % (profdata, _file, _proj, _type))
496495

497-
_directory = try_to_run("find %s -type f -name '*.gcno' -exec dirname {} \;)" % (codecov.gcov_root or root))
498-
cmd = "find %s -type f -name '*.gcno' %s -exec gcov -pbcu -o %s {} +" % (
496+
cmd = "find %s -type f -name '*.gcno' %s -exec gcov -pbcu %s {} +" % (
499497
(codecov.gcov_root or root),
500498
" ".join(map(lambda a: "-not -path '%s'" % a, codecov.gcov_glob)),
501-
_directory)
499+
(codecov.gcov_args or ''))
502500
write(' Executing gcov (%s)' % cmd)
503501
try_to_run(cmd)
504502

0 commit comments

Comments
 (0)
0