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: be less smart #199

Merged
merged 3 commits into from
Jan 31, 2018
Merged

coverage: be less smart #199

merged 3 commits into from
Jan 31, 2018

Conversation

mseri
Copy link
Collaborator

@mseri mseri commented Jan 31, 2018

Copy over all the bisect files, include all folders and avoid using arrays.

Signed-off-by: Marcello Seri marcello.seri@citrix.com

Copy over all the files, include all folders and avoid using arrays.

Signed-off-by: Marcello Seri <marcello.seri@citrix.com>
@mseri mseri requested a review from edwintorok January 31, 2018 14:54
.coverage.sh Outdated
# move all bisect files here
find . -name 'bisect*.out' -exec mv {} . \;

DIRECTORIES=`find . -type d`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is quite a nice pattern. The printf creates a string "-I xx -I yy -I zz" - one entry per directory.

.coverage.sh Outdated
@@ -22,7 +22,7 @@ jbuilder runtest
# move all bisect files here
find . -name 'bisect*.out' -exec mv {} . \;

DIRECTORIES=`find . -type d`
DIRECTORIES=$(find _build/default -type d -not -path '*/\.*')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In '*/\.*' the \ is not required but does no harm.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn’t sure. Do you want me to remove it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless you update this PR for something else, this is fine.

Copy link
Contributor

@edwintorok edwintorok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using simpler to understand bash syntax, nice!

# move all bisect files here
find . -name 'bisect*.out' -exec mv {} . \;

DIRECTORIES=$(find _build/default -type d -not -path '*/\.*')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what this is meant to exclude, are there some hidden directories under _build?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, .ppx with the rewriters. It is not necessary though, just nicer output

@mseri mseri merged commit 9a22558 into xapi-project:master Jan 31, 2018
@mseri mseri deleted the fix-coverage branch January 31, 2018 17:47
@mseri
Copy link
Collaborator Author

mseri commented Jan 31, 2018

Aargh I didn't do the squash :( how should we deal with it? Squash and force push locally or keep it like that?

@lindig
Copy link
Contributor

lindig commented Jan 31, 2018

I see no problem keeping this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants