Skip to content

Commit 00cd695

Browse files
committed
Re-enable NVC in CI
1 parent 9d413e1 commit 00cd695

2 files changed

Lines changed: 35 additions & 23 deletions

File tree

.github/workflows/push.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff 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'

tests/common.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,25 @@
1515
import os
1616
import shutil
1717
import random
18+
import re
1819

1920

2021
def 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"):

0 commit comments

Comments
 (0)