<div dir="ltr">Hi Sandro,<br><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_quote">On Sun, Dec 7, 2014 at 3:39 AM, Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm trying to understand why PAL labelling tests fail on my machine<br>
and for the nightlies but succeed on travis.<br>
<br>
But if I run:<br>
<br>
/usr/bin/python tests/src/python/test_qgspallabeling_composer.py<br>
<br>
All I get as a report are messages like this:<br>
<br>
======================================================================<br>
FAIL: test_background_rect (__main__.TestComposerPdfPoint)<br>
----------------------------------------------------------------------<br>
Traceback (most recent call last):<br>
File "tests/src/python/test_qgspallabeling_tests.py", line 77, in test_background_rect<br>
self.checkTest()<br>
File "tests/src/python/test_qgspallabeling_composer.py", line 305, in checkTest<br>
imgpath=self._TestImage))<br>
AssertionError:<br>
Render check failed for "sp_pdf_background_rect"<br>
<br>
The message doesn't tell me the paths to the expected and obtained image<br>
nor the used tolerance to compare the two. Is there a commandline switch<br>
that I'm missing to get that info ?<br></blockquote><div><br><div class="gmail_extra">I have added several environment variable controls for getting data out of the labeling engine tests.<br><br></div><div class="gmail_extra">See: <a href="https://github.com/qgis/QGIS/tree/master/tests/testdata/labeling">https://github.com/qgis/QGIS/tree/master/tests/testdata/labeling</a><br><br>You
will want to turn on PAL_VERBOSE, PAL_REPORT, and PAL_SUITE, then edit
test_qgspallabeling_tests.py or other test_qgspallabeling_*.py files to
have full control over which test are run (if needed). Just remember not
to push upstream any session/debugging edits you have made to the
test_qgspallabeling_*.py files.</div><br clear="all"><div><div class="gmail_signature">Specifically,
PAL_REPORT will generate an HTML report, similar to that which is
uploaded to CDash, for all failed tests. You can use those images from
the report for any acceptable control image anomalies, if needed.<br><br></div><div class="gmail_signature">Regards,<br></div><div class="gmail_signature"><br>Larry Shaffer<br>Dakota Cartography<br>Black Hills, South Dakota</div></div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
--strk;<br>
<br>
() ASCII ribbon campaign -- Keep it simple !<br>
/\ <a href="http://strk.keybit.net/rants/ascii_mails.txt" target="_blank">http://strk.keybit.net/rants/ascii_mails.txt</a><br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br></div></div>