Skip to content

Commit

Permalink
Merge branch 'uvm-ci' into uvm-ci-rtl-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
M0stafaRady committed Feb 20, 2024
2 parents 3e4f198 + 349b06b commit fa4b14c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/uvm_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,23 @@ jobs:
cd verify/uvm-python
make run_all_tests RUN_MERGE_COVERAGE=false
- name: Check for test results in sim/default_run
- name: Check for test results in run
run: |
cd verify/uvm-python
passed_count=$(find sim/default_run -type f -name 'passed' | wc -l)
failed_count=$(find sim/default_run -type f -name 'failed' | wc -l)
unknown_count=$(find sim/default_run -type f -name 'unknown' | wc -l)
passed_count=$(find sim/default_tag -type f -name 'passed' | wc -l)
failed_count=$(find sim/default_tag -type f -name 'failed' | wc -l)
unknown_count=$(find sim/default_tag -type f -name 'unknown' | wc -l)
echo "Passed: $passed_count"
echo "Failed: $failed_count"
echo "Unknown: $unknown_count"
if [ "$failed_count" -ne 0 ] || [ "$unknown_count" -ne 0 ]; then
if [ "$passed_count" -eq 0 ]; then
echo "Error: No passed test results found"
exit 1
elif [ "$failed_count" -ne 0 ] || [ "$unknown_count" -ne 0 ]; then
echo "Error: There are failed or unknown test results"
exit 1
else
echo "All tests passed successfully"
fi
fi

0 comments on commit fa4b14c

Please sign in to comment.