Make shell restart tests reliable

This commit is contained in:
Gabriel Brown
2026-08-17 11:45:03 -04:00
parent f27a1dca11
commit 2728fb08fb
2 changed files with 16 additions and 2 deletions
+8 -1
View File
@@ -24,7 +24,14 @@ chmod --reference="$state_file" "$expired"
mv "$expired" "$state_file"
qs kill >/dev/null
qs --daemonize >/dev/null
for _ in $(seq 1 50); do
qs list 2>&1 | rg -q '^Instance ' || break
sleep 0.1
done
if qs list 2>&1 | rg -q '^Instance '; then
fail 'shell did not stop before restart'
fi
quickshell --daemonize >/dev/null
status=""
for _ in $(seq 1 60); do