-
Notifications
You must be signed in to change notification settings - Fork 402
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
test: do not use file names with illegal characters in tests #1421
Conversation
I can check this one out fine, but I don't get the expected error message when building:
|
that's weird, the tests pass for me and I don't see any OS-dependent thing. If not, can you add a [edit: fix typo] |
I checked the man page just in case... 😉 Here's the full output from the tests:
|
Interesting, it seems the file ending with full-stop was not checked out as-is, somehow the final full-stop character was removed… (by Windows git?). |
Did git give you any warning about that when checking out this branch? |
Also, what do you see in your file explorer? (I'm trying to figure out if the full-stop character was removed at check-out time or if it's a runtime issue) |
(by the way let me know if you don't have more time to spend on this, and I'll dust off my Windows VM 😊) |
Ah, just seeing that the Windows naming conventions say:
Mmm. I'm considering adding a step instruction to disable these tests on Windows. ( |
Sorry, didn't see the new emails come in while I was going through the rest of the PRs. No, there weren't any error messages from git when I checked it out. The weird thing is it doesn't recognize any files as missing after checkout, but it picks up the two files you mention as unversioned. This is immediately after deleting the branch and checking it out again, so it's nothing from the epubcheck build. |
Ya, I'd go with whatever is easiest. This is a pretty minor piece in the overall scheme of things. |
yeah, in fact this PR doesn't fix anything: files ending with a period are rejected like the ones with invalid characters before… it's just that you were not warned because you had disabled the NTFS protection setting earlier while we were troubleshooting the issue 😉 so back to square one. I'm going to try if a packaged EPUB works (i.e. can be unpacked without creating runtime trouble). |
File names with EPUB-illegal characters are also NTFS-invalid names, so they can cause issues (cannot be easily checked out by git on Windows or may cause runtime issues on NTFS). This commit replaces the expanded EPUBs in invalid characters by tests by packaged EPUBs. Fix #1420.
f83e394
to
2809c23
Compare
@mattgarrish I ended up using packaged EPUBs. It works fine on my Windows 10 box:
|
Ya, this obviously works for me now, too. |
File names with EPUB-illegal characters are also NTFS-invalid names, so they can cause issues (cannot be easily checked out by git on Windows or may cause runtime issues on NTFS).
This commit replaces tests using files with invalid characters by tests using files with a full stop as the last character. Other illegal characters are tested in the file name checker unit tests.
Fix #1420.