Skip to content

Commit

Permalink
update CI to upload failed results, inject error in monitor to try CI
Browse files Browse the repository at this point in the history
  • Loading branch information
M0stafaRady committed Feb 29, 2024
1 parent 96b2a26 commit 3e848ab
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/uvm_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,18 @@ jobs:
exit 1
else
echo "All tests passed successfully"
fi
fi
- name: tar failed tests
if: failure()
run: |
cd verify/uvm-python
tar -czf failed_tests.tar.gz sim/default_tag
- name: upload failed tests
if: failure()
uses: actions/upload-artifact@v2
with:
name: failed_tests
path: verify/uvm-python/failed_tests.tar.gz


1 change: 1 addition & 0 deletions verify/uvm-python/uart_agent/uart_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ async def sample_tx(self):
tr.char, tr.parity, tr.word_length = await self.get_char()
tr.direction = uart_item.TX
uvm_info(self.tag, "sampled uart TX transaction: " + tr.convert2string(), UVM_HIGH)
uvm_error(self.tag, "sampled uart TX transaction: " + tr.convert2string())
self.monitor_port.write(tr)
self.tx_received.set()

Expand Down

0 comments on commit 3e848ab

Please sign in to comment.