1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-07 21:17:07 +09:00
ladybird/Meta/watch_wpt_progress.sh
Ali Mohammad Pur 011982c501 Meta: Make WPT.sh run nproc/2 testrunners in parallel
This is the "intended" way of parallelism with wpt, but instead of
requiring N different systems (or VMs), this does it all on one system
with the power of namespaces.
2025-05-07 15:48:21 +01:00

15 lines
284 B
Bash

#!/bin/bash
files=("${@}")
while true; do
out=$(
for file in "${files[@]}"; do
echo -n "$file:"
{ grep -aohE "^\s*\[[0-9]+/[0-9]+\]" "$file" || echo ' [not started yet]'; } | tail -n1
done
)
clear
echo "$out"
sleep 1
done