Skip to content

Comments

Make coverage.sh work with dune#2

Merged
gaborigloi merged 1 commit intoxapi-project:masterfrom
gaborigloi:dune_coverage
Aug 7, 2018
Merged

Make coverage.sh work with dune#2
gaborigloi merged 1 commit intoxapi-project:masterfrom
gaborigloi:dune_coverage

Conversation

@gaborigloi
Copy link
Contributor

When I've converted nbd to dune, coverage.sh started failing with this
error:
From the command line:
Error: Don't know about directory .coverage!

Apparently dune doesn't like it when we nest a project inside itself. So
I've changed the coverage directory to be a temporary dir in /tmp - this
works fine with dune.

Signed-off-by: Gabor Igloi gabor.igloi@citrix.com

Copy link

@lindig lindig left a comment

Choose a reason for hiding this comment

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

Looking good. Just one comment about something that was already there.

coverage.sh Outdated

# copy over everything
$(which cp) -r ../* .
$(which cp) -r ./* $COVERAGE_DIR
Copy link

Choose a reason for hiding this comment

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

The which cp seems strange to me. Why not use /bin/cp or simply cp? I don't understand why it is here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have no idea to be honest, I also found this surprising.

Copy link
Contributor Author

@gaborigloi gaborigloi Aug 7, 2018

Choose a reason for hiding this comment

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

I've changed it after discussion with people - which is pointless

When I've converted nbd to dune, coverage.sh started failing with this
error:
From the command line:
Error: Don't know about directory .coverage!

Apparently dune doesn't like it when we nest a project inside itself. So
I've changed the coverage directory to be a temporary dir in /tmp - this
works fine with dune.

Signed-off-by: Gabor Igloi <gabor.igloi@citrix.com>
@gaborigloi gaborigloi merged commit aaa39e8 into xapi-project:master Aug 7, 2018
@gaborigloi gaborigloi deleted the dune_coverage branch August 7, 2018 12:23
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.

2 participants