R1 and R3 block: a late broker reply shifts later replies on the host IPC channel, and a dangling workspace symlink passes the gate. R2 (close waits on an open launch.sock client) should be fixed in the same round. Probes, mutants and suite outputs alongside. Comment 26995 on #1523, queue rev 247. Co-Authored-By: Claude Opus 5.5 <[email protected]>
18 lines
760 B
Bash
Executable File
18 lines
760 B
Bash
Executable File
#!/bin/bash
|
|
# run.sh <mutant> <pkg>...: mutate, run each package's node suite, restore.
|
|
set -u
|
|
cd ~/darkwing-scratch/r41/wt
|
|
export TMPDIR=~/darkwing-scratch/tmp DOCKER_HOST=unix:///nonexistent.sock
|
|
m=$1; shift
|
|
f=$(python3 ../mut/mutate.py "$m") || { echo "$m: no match" | tee -a ../mut/summary.txt; exit 1; }
|
|
line="$m ($f):"
|
|
for p in "$@"; do
|
|
out=../mut/$m-$p.txt
|
|
node --test "packages/$p/tests/*.test.mjs" > "$out" 2>&1
|
|
pass=$(grep -E '^# pass' "$out" | awk '{print $3}'); fail=$(grep -E '^# fail' "$out" | awk '{print $3}')
|
|
line="$line $p pass $pass fail $fail;"
|
|
[ "$fail" != 0 ] && line="$line [$(grep -E '^not ok' "$out" | sed 's/^not ok [0-9]* - //' | head -3 | paste -sd'|')]"
|
|
done
|
|
git checkout -- "$f"
|
|
echo "$line" | tee -a ../mut/summary.txt
|