Skip to content
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

PyQgsSelectiveMasking testcase fails: FileNotFoundError: [Errno 2] No such file or directory: 'qpdf' #57733

Open
2 tasks
strk opened this issue Jun 11, 2024 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! testsuite Issue related to testsuite

Comments

@strk
Copy link
Contributor

strk commented Jun 11, 2024

What is the bug or the crash?

testcase fails, I guess due to missing dependency.

Solution proposed: don't run the test if the dependency is not met, printing a WARNING instead

Steps to reproduce the issue

ctest -R PyQgsSelectiveMasking --output-on-failure

Versions

Current master branch

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

Traceback (most recent call last):
File "/usr/local/src/qgis/qgis/src/master/tests/src/python/test_selective_masking.py", line 1317, in test_vector_random_generator_fill
self.check_layout_export("layout_export_random_generator_fill", 0, [layer], extent=extent)
File "/usr/local/src/qgis/qgis/src/master/tests/src/python/test_selective_masking.py", line 223, in check_layout_export
subprocess.run(["qpdf", "--qdf", "--object-streams=disable", result_filename, result_txt])
File "/usr/lib/python3.10/subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.10/subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'qpdf'

@strk strk added Bug Either a bug report, or a bug fix. Let's hope for the latter! testsuite Issue related to testsuite labels Jun 11, 2024
@strk
Copy link
Contributor Author

strk commented Jun 20, 2024

CI is also showing errors in that test:

======================================================================
FAIL: test_markerline_masked (__main__.TestSelectiveMaskingGeometryBackend)
Test a layout export where a QgsMarkerLineSymbolLayer is masked
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/QGIS/tests/src/python/test_selective_masking.py", line 1376, in test_markerline_masked
    self.check_layout_export("layout_export_markerline_masked", 0, [self.polys_layer, self.lines_layer])
  File "/root/QGIS/tests/src/python/test_selective_masking.py", line 251, in check_layout_export
    self.assertTrue(res)
AssertionError: False is not true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! testsuite Issue related to testsuite
Projects
None yet
Development

No branches or pull requests

1 participant