Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- {"test": "test_progs_no_alu32", "continue_on_error": false, "timeout_minutes": 360}
- {"test": "test_verifier", "continue_on_error": false, "timeout_minutes": 360}
- {"test": "test_maps", "continue_on_error": false, "timeout_minutes": 360}
# - {"test": "sched_ext", "continue_on_error": false, "timeout_minutes": 360}
- {"test": "sched_ext", "continue_on_error": false, "timeout_minutes": 360}
# - {"test": "test_progs-bpf_gcc", "continue_on_error": false, "timeout_minutes": 360}
fail-fast: false

Expand Down
9 changes: 7 additions & 2 deletions run-vmtest/run-scx-selftests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@ cd "${SELFTESTS_DIR}"
echo "Executing selftests/sched_ext/runner"
echo "runner output is being written to runner.log"

./runner "$@" 2>&1 > runner.log & wait
./runner > runner.log 2>&1 || true

echo "runner finished, check results"
echo "[...]"
tail -n 16 runner.log

failed=$(tail -n 16 runner.log | grep "FAILED" | awk '{print $2}')
failed=$(tail -n 16 runner.log | grep "^FAILED:" | awk '{print $2}' || echo "")

if [ -z "$failed" ]; then
echo "ERROR: Could not parse runner output, assuming failure"
failed=1
fi

if [ "$failed" -gt 0 ]; then
echo "Tests failed, dumping full runners log and dmesg"
Expand Down
Loading