-
Notifications
You must be signed in to change notification settings - Fork 49
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
Output appropriate error message on help failure and minor cleanups #887
Conversation
If flux-core is configured and built with --disable-docs, the "flux help" command may still pick up manpages generated outside of the current build (such as a version of flux installed on the system). Install a simple ".nodocs" file when not generating documents. When user attempts to user "flux help", this file can be detected and an appropriate error message will be output to the user. Fixes flux-framework#874
For clarity, change HAVE_A2X automake conditional to ENABLE_DOCS. Makes automake clearer across Makefile.am files and independent of the tool used to generate manpages.
Hmmm, lots of failures in make check, it appears a2x can't be found in travis
probably have to add asciidoc to travis.yml. But before I do that, I don't see what could have happened between #871 and the current master. |
We purposefully leave a2x out of Travis, it takes too long to install all On Oct 30, 2016 3:41 PM, "Al Chu" notifications@github.com wrote:
|
Ah, the problem is (at the least) with the A possible workaround would be some kind of environment variable to disable the |
Ahhh. I realized it was fake manpages in the tests, but I didn't quite get how things worked with Yeah, I'll have to tweak the tests in some way. |
I guess it would be safe if you removed |
Support workaround environment variable FLUX_IGNORE_NO_DOCS to ignore .nodocs file and ensure flux-help unit tests can pass regardless if manpages are generated or not.
I elected to support a |
Current coverage is 72.15% (diff: 66.66%)@@ master #887 diff @@
==========================================
Files 156 156
Lines 26929 26935 +6
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
- Hits 19448 19436 -12
- Misses 7481 7499 +18
Partials 0 0
|
because of the workaround environment variable, code coverage does go down a tad as some of the new |
Yeah, seems fine to me. Merging this one thanks! |
No description provided.