| Started | 2024-09-10 15:10:38 |
|---|---|
| Ended | 2024-09-10 15:10:38 |
| Duration | 0:00:00.315918 |
| Markers | xfail |
| Fixtures | file |
Setup
Call
[gw1] linux -- Python 3.9.19 /opt/hostedtoolcache/Python/3.9.19/x64/bin/python
file = '/home/runner/work/extended-tests/extended-tests/microwatt/fpga/clk_gen_bypass.vhd'
@mark.parametrize(
"file",
getVHDLSources()
)
@mark.xfail
def test_AllVHDLSources(file):
> check_call(['ghdl-dom', 'pretty', '-f', str(file)], stderr=STDOUT)
TestDOM.py:25:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['ghdl-dom', 'pretty', '-f', '/home/runner/work/extended-tests/extended-tests/microwatt/fpga/clk_gen_bypass.vhd'],)
kwargs = {'stderr': -2}, retcode = 1
cmd = ['ghdl-dom', 'pretty', '-f', '/home/runner/work/extended-tests/extended-tests/microwatt/fpga/clk_gen_bypass.vhd']
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['ghdl-dom', 'pretty', '-f', '/home/runner/work/extended-tests/extended-tests/microwatt/fpga/clk_gen_bypass.vhd']' returned non-zero exit status 1.
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/subprocess.py:373: CalledProcessError Captured stdout call
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/pyGHDL/cli/dom.py", line 351, in main
app.Run()
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/pyGHDL/cli/dom.py", line 190, in Run
ArgParseMixin.Run(self)
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/pyAttributes/ArgParseAttributes.py", line 297, in Run
self._ParseArguments()
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/pyAttributes/ArgParseAttributes.py", line 309, in _ParseArguments
self._RouteToHandler(args)
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/pyAttributes/ArgParseAttributes.py", line 313, in _RouteToHandler
args.func(self, args)
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/pyGHDL/cli/dom.py", line 318, in HandlePretty
for line in PP.formatDesign(self._design, 1):
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/pyGHDL/dom/formatting/prettyprint.py", line 128, in formatDesign
for line in self.formatDocument(document, level + 2):
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/pyGHDL/dom/formatting/prettyprint.py", line 178, in formatDocument
for line in self.formatEntity(entity, level + 1):
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/pyGHDL/dom/formatting/prettyprint.py", line 204, in formatEntity
for line in self.formatGeneric(generic, level + 1):
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/pyGHDL/dom/formatting/prettyprint.py", line 324, in formatGeneric
return self.formatGenericConstant(generic, level)
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/pyGHDL/dom/formatting/prettyprint.py", line 344, in formatGenericConstant
subTypeIndication = self.formatSubtypeIndication(generic.Subtype, "generic", generic.Identifiers[0])
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/pyGHDL/dom/formatting/prettyprint.py", line 447, in formatSubtypeIndication
return f"{subtypeIndication.Identifier}"
================================================================================
pyGHDL.dom - Test Application
================================================================================
Parsing file '/home/runner/work/extended-tests/extended-tests/microwatt/fpga/clk_gen_bypass.vhd'
libghdl processing time: 109.465 us
DOM translation time: 1172.594 us
default library load time: 2817.931 us
dependency analysis time: 1979.814 us
FATAL: An unknown or unhandled exception reached the topmost exception handler!
Exception type: AttributeError
Exception message: 'SimpleSubtypeSymbol' object has no attribute 'Identifier'
Caused in: formatSubtypeIndication in file '/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/pyGHDL/dom/formatting/prettyprint.py' at line 447
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Please report this bug at GitHub: https://GitHub.com/pyTooling/pyTooling.TerminalUI/issues
--------------------------------------------------------------------------------