diff --git a/.github/workflows/uvm_ci.yaml b/.github/workflows/uvm_ci.yaml index cb6187c..57b55f8 100644 --- a/.github/workflows/uvm_ci.yaml +++ b/.github/workflows/uvm_ci.yaml @@ -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 + + diff --git a/verify/uvm-python/uart_agent/uart_monitor.py b/verify/uvm-python/uart_agent/uart_monitor.py index fc994d0..f81f363 100644 --- a/verify/uvm-python/uart_agent/uart_monitor.py +++ b/verify/uvm-python/uart_agent/uart_monitor.py @@ -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()