Skip to content

Commit 4041003

Browse files
committed
run-vmtest: Fixes in selftests/sched_ext runner trigger
Assisted-by: Claude:claude-opus-4-7 Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
1 parent 9201428 commit 4041003

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- {"test": "test_progs_no_alu32", "continue_on_error": false, "timeout_minutes": 360}
2929
- {"test": "test_verifier", "continue_on_error": false, "timeout_minutes": 360}
3030
- {"test": "test_maps", "continue_on_error": false, "timeout_minutes": 360}
31-
# - {"test": "sched_ext", "continue_on_error": false, "timeout_minutes": 360}
31+
- {"test": "sched_ext", "continue_on_error": false, "timeout_minutes": 360}
3232
# - {"test": "test_progs-bpf_gcc", "continue_on_error": false, "timeout_minutes": 360}
3333
fail-fast: false
3434

run-vmtest/run-scx-selftests.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,18 @@ cd "${SELFTESTS_DIR}"
1010
echo "Executing selftests/sched_ext/runner"
1111
echo "runner output is being written to runner.log"
1212

13-
./runner "$@" 2>&1 > runner.log & wait
13+
./runner > runner.log 2>&1 || true
1414

1515
echo "runner finished, check results"
1616
echo "[...]"
1717
tail -n 16 runner.log
1818

19-
failed=$(tail -n 16 runner.log | grep "FAILED" | awk '{print $2}')
19+
failed=$(tail -n 16 runner.log | grep "^FAILED:" | awk '{print $2}' || echo "")
20+
21+
if [ -z "$failed" ]; then
22+
echo "ERROR: Could not parse runner output, assuming failure"
23+
failed=1
24+
fi
2025

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

0 commit comments

Comments
 (0)