Skip check_egl_platform_ext in case of PermissionError - #153
Open
bdrung wants to merge 1 commit into
Open
Conversation
pyopengl 3.1.9+dfsg-1.1 autopkgtest fails on arm64:
```
=================================== FAILURES ===================================
_________________________ test_check_egl_platform_ext __________________________
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: Traceback (most recent call last):
File "/tmp/autopkgtest.dCNMA4/autopkgtest_tmp/tests/check_egl_platform_ext.py", line 41, in <module>
main()
~~~~^^
File "/tmp/autopkgtest.dCNMA4/autopkgtest_tmp/tests/check_egl_platform_ext.py", line 21, in main
with open(cards[0], "w") as f:
~~~~^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/dev/dri/renderD128'
```
Skip this test in case of a permission error on the DRI device.
Bug-Ubuntu: https://launchpad.net/bugs/2115791
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pyopengl 3.1.9+dfsg-1.1 autopkgtest fails on arm64:
Skip this test in case of a permission error on the DRI device.
Bug-Ubuntu: https://launchpad.net/bugs/2115791