After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 779615 - yelp-check validate does not return a proper exit code on errors
yelp-check validate does not return a proper exit code on errors
Status: RESOLVED OBSOLETE
Product: yelp-tools
Classification: Core
Component: yelp-check
3.18.x
Other Linux
: Normal normal
: ---
Assigned To: Yelp maintainers
Yelp maintainers
Depends on:
Blocks:
 
 
Reported: 2017-03-05 15:11 UTC by Michael Biebl
Modified: 2018-05-22 12:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Biebl 2017-03-05 15:11:10 UTC
I've modified a document to contain an error:

$ yelp-check validate ./C
./C/image-preview.page:59: parser error : Opening and ending tag mismatch: info line 6 and page
</page>
       ^
./C/image-preview.page:60: parser error : Premature end of data in tag page line 2

^
unable to parse ./C/image-preview.page
./C/image-preview.page:59: parser error : Opening and ending tag mismatch: info line 6 and page
</page>
       ^
./C/image-preview.page:60: parser error : Premature end of data in tag page line 2

^
unable to parse ./C/image-preview.page
warning: failed to load external entity "/tmp/yelp-vC0b6lsc/.rng"
Relax-NG parser error : xmlRelaxNGParse: could not load /tmp/yelp-vC0b6lsc/.rng
Relax-NG schema /tmp/yelp-vC0b6lsc/.rng failed to compile
./C/image-preview.page:59: parser error : Opening and ending tag mismatch: info line 6 and page
</page>
       ^
./C/image-preview.page:60: parser error : Premature end of data in tag page line 2

^
$ echo $?
0


As you can see, the return code is 0, which usually signals success. This should be changed to return a non-zero return code on errors.
Comment 1 GNOME Infrastructure Team 2018-05-22 12:52:10 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/yelp-tools/issues/16.