| #!/bin/bash |
| |
| # Prow may not create artifacts folder in advance. |
| mkdir -p "$ARTIFACTS" |
| |
| # Include kunitconfig manually until we can pull it from prowjob TODO(avikr) |
| cp /kunitconfig ./kunitconfig |
| |
| # Build and run kernel, parse output, and send details to output log |
| python3 ./tools/testing/kunit/kunit.py run > "$ARTIFACTS/kunit.log" 2>&1 |
| if [[ $? -ne 0 ]]; then |
| echo "Kunit Tool failed to run" |
| exit 1 |
| fi |
| |
| echo "KUnit Log" |
| echo "=============================" |
| cat "$ARTIFACTS/kunit.log" |
| echo "=============================" |