Skip to content

Commit 2b16951

Browse files
CI: Fix Astsee (verilator/verilator#6399) (#7)
1 parent abdc274 commit 2b16951

File tree

5 files changed

+10
-2
lines changed

5 files changed

+10
-2
lines changed

.github/workflows/build-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ jobs:
7676
CI_BUILD_STAGE_NAME: test
7777
run: |
7878
( cd submodules/verilator && bash ci/ci-install.bash )
79-
pipx install submodules/astsee
79+
pipx install --system-site-packages submodules/astsee
8080
8181
- name: Test
8282
run: |
8383
export VERILATOR_ROOT=$GITHUB_WORKSPACE/submodules/verilator
84+
source /opt/pipx/venvs/astsee/bin/activate
8485
make test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
obj_*
22
*.swp
33
.gdb_history
4+
t/__pycache__

submodules/verilator

Submodule verilator updated 808 files
1.3 KB
Binary file not shown.

t/t_gdb_jtree.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
99

1010
import vltest_bootstrap
11+
import sysconfig
1112

1213
test.scenarios('vlt')
1314
test.top_filename = "t/t_dump.v"
@@ -20,6 +21,11 @@
2021
if 'NotFoundError:' in out:
2122
test.skip("No astsee package file installed")
2223

24+
purelib = sysconfig.get_paths().get("purelib", "")
25+
platlib = sysconfig.get_paths().get("platlib", "")
26+
pythonpaths = [p for p in (purelib, platlib, test.getenv_def("PYTHONPATH")) if p]
27+
test.setenv("PYTHONPATH", os.pathsep.join(pythonpaths))
28+
2329
test.setenv(
2430
"VERILATOR_GDB", "gdb --return-child-result" +
2531
(" --batch-silent --quiet" if test.verbose else " --batch") +

0 commit comments

Comments
 (0)