Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coverage combine doesn't work with rcfile #385

Closed
nedbat opened this issue Jul 27, 2015 · 10 comments
Closed

coverage combine doesn't work with rcfile #385

nedbat opened this issue Jul 27, 2015 · 10 comments
Labels
bug Something isn't working

Comments

@nedbat
Copy link
Owner

nedbat commented Jul 27, 2015

Originally reported by Anonymous


Hi,

I have plenty of .coverage.* files and trying to combine them by running:
% coverage combine --rcfile .coveragerc
Where .coveragerc looks like:
[paths]
my_dirs =
<path 1>
<path 2>

It used to work with 4.0a5 but not working with 4.0a6

Thanks,
Maoz


@nedbat
Copy link
Owner Author

nedbat commented Jul 27, 2015

Can you provide more details about how it isn't working? Can you give me the exact contents of your rcfile?

@nedbat
Copy link
Owner Author

nedbat commented Jul 27, 2015

Original comment by Maoz Guttman (Bitbucket: maozguttman, GitHub: maozguttman)


Hi,

By saying not working, I mean that none of the .coverage.* files were combined into .coverage file. They were also not deleted after running "coverage combine".

.coveragerc file content is as following, where is a full path pointer to a directory in NFS

#!Text

[paths]
my_dirs =
        <path 1>
        <path 2>
        <path 3>
        <path 4>


p.s. I am running it on Linux (Suse10).

Thanks,
Maoz

@nedbat
Copy link
Owner Author

nedbat commented Jul 27, 2015

@maozguttman Thanks. Do you know if NFS is a key factor here? Have you tried a similar operation not on NFS? Do you mind pasting the exact literal text of the .coveragerc file? I'm looking for any clue at all... :)

@nedbat
Copy link
Owner Author

nedbat commented Jul 27, 2015

Original comment by Maoz Guttman (Bitbucket: maozguttman, GitHub: maozguttman)


It is not related to NFS. I was trying it on /tmp local disk.
.coverage file is generated when running "coverage combine", but it seems to be empty since "coverage html" reports "No data to report." Also its size is 64B comparing to 10KB of the raw .coverage.* files.

Here is rc file:

#!text
[paths]
my_dirs =
        /tmp/maozg/casa_main_branch_1/out/em64t_SLES10/st64

@nedbat
Copy link
Owner Author

nedbat commented Jul 27, 2015

Original comment by Maoz Guttman (Bitbucket: maozguttman, GitHub: maozguttman)


Do you want me to create a toy example for you? or can you reproduce it without it?

Thanks,
Maoz

@nedbat
Copy link
Owner Author

nedbat commented Jul 27, 2015

@maozguttman if you could make an example, that would be amazing, thanks!

@nedbat
Copy link
Owner Author

nedbat commented Jul 28, 2015

Original comment by Maoz Guttman (Bitbucket: maozguttman, GitHub: maozguttman)


How to reproduce:

#!tcsh
gtar -xzvf coverage_bug.tar.gz
cd coverage_bug
./run.tcsh

Bug: run above test case with both 4.05a and 4.06a versions. "coverage combine" works in 4.05a, but not in 4.06a

@nedbat
Copy link
Owner Author

nedbat commented Jul 28, 2015

Original comment by Maoz Guttman (Bitbucket: maozguttman, GitHub: maozguttman)


Hi,

I attached a test case.

How to reproduce:

#!tcsh
gtar -xzvf coverage_bug.tar.gz
cd coverage_bug
./run.tcsh

Bug: run above test case with both 4.05a and 4.06a versions. "coverage combine" works in 4.05a, but not in 4.06a

Thanks,
Maoz

@nedbat
Copy link
Owner Author

nedbat commented Jul 28, 2015

@maozguttman Thanks! That made it very clear. Fixed in 0007fc5762b6 (bb)

@nedbat
Copy link
Owner Author

nedbat commented Jul 28, 2015

Original comment by Maoz Guttman (Bitbucket: maozguttman, GitHub: maozguttman)


Tnx!

Maoz

@nedbat nedbat closed this as completed Jul 28, 2015
@nedbat nedbat added major bug Something isn't working labels Jun 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant