build failure on F38
Just updated piglit today and got this:
FAILED: tests/sanity.xml.gz /home/zmike/src/piglit/tests/sanity.xml.gz
cd /home/zmike/src/piglit/target_api/no_api/tests && /usr/bin/cmake -E env PIGLIT_BUILD_TREE=/home/zmike/src/piglit /usr/bin/python /home/zmike/src/piglit/tests/serializer.py sanity /home/zmike/src/piglit/tests/sanity.py /home/zmike/src/piglit/tests/sanity.xml.gz
Traceback (most recent call last):
File "/home/zmike/src/piglit/tests/serializer.py", line 158, in <module>
main()
File "/home/zmike/src/piglit/tests/serializer.py", line 153, in main
profile = load_test_profile(args.input, python=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zmike/src/piglit/tests/../framework/profile.py", line 603, in load_test_profile
mod = importlib.import_module('tests.{0}'.format(name))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/zmike/src/piglit/tests/../tests/sanity.py", line 106, in <module>
add_shader_test(shader_test)
File "/home/zmike/src/piglit/tests/../tests/sanity.py", line 56, in add_shader_test
dirpath, filename = os.path.split(os.path.join(basedir, shader))
^^^^^^^
UnboundLocalError: cannot access local variable 'basedir' where it is not associated with a value