test-imagemagick.py issue with a font on Ubuntu 18.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QA Regression Testing |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I faced two problems in test-imagemagick.py related to the absence of the font to operate.
The following output contains these problems:
------------ Begin console output ----------------
=======
FAIL: test_disabled_text (__main_
Test to ensure text is disabled entirely
-------
Traceback (most recent call last):
File "./test-
"""
File "./test-
self.
File "/home/
self.
AssertionError: Got exit code 1, expected 0
Command: 'convert', 'text:/
Output:
convert-im6.q16: unable to get type metrics `/tmp/imagemagi
convert-im6.q16: no images defined `/tmp/imagemagi
=======
FAIL: test_lp1646485 (__main_
Test for LP: #1646485 regression
-------
Traceback (most recent call last):
File "./test-
self.
AssertionError: Got exit code 1, expected 0
convert: unable to read font `(null)' @ error/annotate.
convert: no images defined `/tmp/imagemagi
------------- End console output -----------------
As I have understood, the convert utility fails because it can not find a font and its metrics to draw text with. My solution is to have both the -font option and the following font name in the command line of the convert utility. This solution works for me.
There is the proposed merge request - https:/
Related branches
- Alex Murray: Needs Information
-
Diff: 49 lines (+22/-2)1 file modifiedscripts/test-imagemagick.py (+22/-2)
summary: |
- test-imagemagick.py issue with a font + test-imagemagick.py issue with a font on Ubuntu 18.04 |
I am unable to reproduce this failure on an up-to-date 18.04 VM under LXD - can you provide any more details on the test environment you are using?