Skip to content

Skip check_egl_platform_ext in case of PermissionError #153

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bdrung
Copy link

@bdrung bdrung commented Jul 2, 2025

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant