-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fix filename bug #54
Fix filename bug #54
Conversation
Codecov Report
@@ Coverage Diff @@
## master #54 +/- ##
==========================================
- Coverage 87.27% 87.06% -0.22%
==========================================
Files 11 11
Lines 448 456 +8
==========================================
+ Hits 391 397 +6
- Misses 57 59 +2
Continue to review full report at Codecov.
|
mdbenchmark/generate.py
Outdated
gpu=gpu, | ||
module=m, | ||
full_filename=full_filename, | ||
name=engine_filename, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name
isn't used anymore and it must have been defined.
I cannot wrap my head around that. My local tests fail at this line, while Travis-CI does not seem to have any problems. I've cleared all caches already using |
Resolves #53.
Just realized what is causing the problem: for testing purposes I created Is something is wrong with our pytest setup? |
* Test the file name check. * Add another test to check the bench.job variable replacement.
@kain88-de This is finished. I'd like to finish #49 before we release a new version. |
I don't know what files you had exactly so I can't say. To my knowledge, there isn't anything wrong. Also, test files should best be generated in a folder outside of the source code. |
changelog/54.bugfix
Outdated
@@ -0,0 +1 @@ | |||
The provided filename is now correctly parsed and provided to the job templates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better 'Fixed edge-case in input filename parsing.'
It's not like it wasn't parsed correctly before. We just missed a specific edge case.
|
you invoke the CLI interface from the folder where you call pytest. To avoid this behavior you need to ensure that the cli invocation happens in a temporary folder. It might be time to refactor the CLI testing functions. |
Fixes #53.
Changes made in this pull request:
PR Checklist
./changelog/
(more information)?