Skip to content

set LC_ALL=C when running Perl test suite#425

Merged
boegel merged 6 commits intoeasybuilders:developfrom
boegel:perl_test
Sep 10, 2014
Merged

set LC_ALL=C when running Perl test suite#425
boegel merged 6 commits intoeasybuilders:developfrom
boegel:perl_test

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Jun 4, 2014

A handful of individual tests sometimes fail for Perl, usually because of locale settings.

The PR allows that less than 1% of the tests fail, and also makes sure make test is always run (except when runtest is explicitly set to False.

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Jun 4, 2014

@wpoely86: please review?

Comment thread easybuild/easyblocks/p/perl.py Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why not show the output by default? We do that with the other make commands?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

the output is shown, but I moved the self.log.debug line up now to make that more clear

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No, what I mean is: we run all other make commands with log_all=True so that you get the output if you run with -l. Why only show the make test output when running in debug mode?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

the log_all needs to be False in order to capture the exit code ourselves

I'll try setting the locale hard though, rather than allowing individual tests to fail.

@wpoely86
Copy link
Copy Markdown
Member

wpoely86 commented Jun 4, 2014

Can we not force the local to "C"?

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Jun 5, 2014

@wpoely86: I don't think it's a good idea to force a particular locale when running the Perl tests, since that's kind of cheating.

@boegel boegel changed the title allow minimal amount of fail tests for Perl allow minimal amount of failing tests for Perl Jun 5, 2014
@wpoely86
Copy link
Copy Markdown
Member

wpoely86 commented Jun 5, 2014

@boegel it is cheating but if it fails because of a local, it's a bug. Now we don't even know if it works with local C (and is a local problem) or is it a real bug?

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Sep 10, 2014

Remark by @wpoely86 fixed, tested with easybuilders/easybuild-easyconfigs#977, so going in.

Thanks @wpoely86 for the critical review!

boegel added a commit that referenced this pull request Sep 10, 2014
allow minimal amount of failing tests for Perl
@boegel boegel merged commit bf3bf0c into easybuilders:develop Sep 10, 2014
@boegel boegel deleted the perl_test branch September 10, 2014 09:57
@boegel boegel changed the title allow minimal amount of failing tests for Perl set LC_ALL=C when running Perl test suite Feb 7, 2024
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