Skip to content

put dummy template values in place to make comparison with dumped easyconfig more robust#1835

Merged
boegel merged 1 commit intoeasybuilders:developfrom
boegel:fix_dump_template
Aug 7, 2015
Merged

put dummy template values in place to make comparison with dumped easyconfig more robust#1835
boegel merged 1 commit intoeasybuilders:developfrom
boegel:fix_dump_template

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Aug 7, 2015

This is required once easybuilders/easybuild-framework#1345 is merged to make the dump aspect of the easyconfig unit tests pass, unless more easyconfigs are tweaked to use templates like %(name)s and/or %(namelower)s.

For easyconfigs using the CmdCp easyblock, it's a bit more tricky since there additional templates (%(source)s and %(target)s) are supported by the CmdCp easyblock itself, which get in the way when trying to resolve templates (since they're not defined (yet) after just parsing the easyconfig).

That's not too big of an issue, it just means that the unit tests are a bit strict w.r.t. template values for these easyconfigs, and may require that templates like %(name)s is used (where applicable) in strings where %(source)s and/or %(target)s are used as well.

A couple of easyconfigs using CmdCp are tweaked to deal with this.

@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-easyconfigs-pr-builder/3890/
Easyconfigs unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyconfigs-pr-builder/3890/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Aug 7, 2015

I'm merging this since it's pretty trivial, and currently blocking me from making progress.

@rjeschmi: let me know if you have any remarks on this

boegel added a commit that referenced this pull request Aug 7, 2015
put dummy template values in place to make comparison with dumped easyconfig more robust
@boegel boegel merged commit c1e2aa8 into easybuilders:develop Aug 7, 2015
@boegel boegel deleted the fix_dump_template branch August 7, 2015 22:49
@rjeschmi
Copy link
Copy Markdown
Contributor

rjeschmi commented Aug 8, 2015

Looks fine

It does seem arbitrary to replace the last instance with (name)s and not the source file instance, but it is arbitrary I guess

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.

3 participants