File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,27 +98,27 @@ jobs:
9898# Docker (Linux) tests (NVC)
9999#
100100
101- # nvc:
102- # runs-on: ubuntu-latest
103- # strategy:
104- # fail-fast: false
105- # matrix:
106- # task: [
107- # {do: 311-acceptance},
108- # {do: 311-vcomponents},
109- # ]
110- # name: '🛳️ Container · ${{ matrix.task.do }} · NVC'
111- # steps:
112-
113- # - name: '🧰 Checkout'
114- # uses: actions/checkout@v4
115- # with:
116- # submodules: recursive
117-
118- # - name: '🚧 Run job'
119- # uses: docker://ghcr.io/vunit/dev/nvc
120- # with:
121- # args: tox -e py${{ matrix.task.do }}-nvc
101+ nvc :
102+ runs-on : ubuntu-latest
103+ strategy :
104+ fail-fast : false
105+ matrix :
106+ task : [
107+ {do: 311-acceptance},
108+ {do: 311-vcomponents},
109+ ]
110+ name : ' 🛳️ Container · ${{ matrix.task.do }} · NVC'
111+ steps :
112+
113+ - name : ' 🧰 Checkout'
114+ uses : actions/checkout@v4
115+ with :
116+ submodules : recursive
117+
118+ - name : ' 🚧 Run job'
119+ uses : docker://ghcr.io/vunit/dev/nvc
120+ with :
121+ args : tox -e py${{ matrix.task.do }}-nvc
122122
123123#
124124# Windows (MSYS2) with 'nightly' GHDL
@@ -175,7 +175,7 @@ jobs:
175175 - fmt
176176 - lin
177177 - ghdl
178- # - nvc
178+ - nvc
179179 - win
180180 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
181181 name : ' 🚀 Deploy'
Original file line number Diff line number Diff line change 1515import os
1616import shutil
1717import random
18+ import re
1819
1920
2021def check_report (report_file , tests = None ):
2122 """
2223 Check an XML report_file for the exact occurrence of specific test results
2324 """
24- tree = ElementTree .parse (report_file )
25+
26+ xml_report = Path (report_file ).read_text ()
27+ illegal_xml_re = re .compile (r"[\x00-\x08\x0B\x0C\x0E-\x1F]" )
28+ xml_report = illegal_xml_re .sub ("" , xml_report )
29+ Path (report_file ).write_text (xml_report )
30+
31+ try :
32+ tree = ElementTree .parse (report_file )
33+ except ElementTree .ParseError :
34+ print (f"Failed to parse XML report file { report_file } , content:\n { xml_report } " )
35+ raise
36+
2537 root = tree .getroot ()
2638 report = {}
2739 for test in root .iter ("testcase" ):
You can’t perform that action at this time.
0 commit comments