Skip to content

Commit 0d5471b

Browse files
Added gdb call in test_linux as a separate step
This calls crashing test_tensor_elementwise under gdb in batch mode in CI.
1 parent 95a8142 commit 0d5471b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/conda-package.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,20 @@ jobs:
161161
run: |
162162
. $CONDA/etc/profile.d/conda.sh
163163
conda activate test_dpctl
164-
python -c "import dpctl; dpctl.lsplatform()"
164+
python -c "import dpctl; dpctl.lsplatform(verbosity=2)"
165+
- name: Install gdb
166+
run: |
167+
sudo apt-get install -y gdb
168+
- name: Run test_elementwise under gdb
169+
run: |
170+
. $CONDA/etc/profile.d/conda.sh
171+
conda activate test_dpctl
172+
gdb --batch -ex r -ex 'info sharedlibrary' -ex 'set print elements 1000' -ex bt --args ${CONDA_PREFIX}/bin/python -m pytest -q -ra --disable-warnings --pyargs dpctl.tests.test_tensor_elementwise::test_cos_order -vv
165173
- name: Run tests
166174
run: |
167175
. $CONDA/etc/profile.d/conda.sh
168176
conda activate test_dpctl
169-
# clinfo -l
170-
python -m pytest --pyargs $MODULE_NAME
177+
python -m pytest -v --pyargs $MODULE_NAME
171178
172179
test_windows:
173180
needs: build_windows

0 commit comments

Comments
 (0)