jail: tests: cosmetic-ish improvements

The new version of incrementing `jid` is a little cleaner and harder to
mess up, and also fix a nwlin omission while we're here.

These comments were dropped on D51502; ngie takes a co-author credit
so that they're not blamed for the commit message, but I can't claim
that I tweaked their suggestions.

Co-authored-by:	ngie
This commit is contained in:
Kyle Evans
2026-04-22 21:59:21 -05:00
parent 1f41f56991
commit 8d680381c8
+2 -1
View File
@@ -186,11 +186,12 @@ find_unused_jid()
atf_skip "System has too many jail, cannot find free slot"
fi
jid=$((jid + 1))
: $(( jid += 1 ))
done
echo "$jid" | tee -a jails.lst
}
clean_jails()
{
if [ ! -s jails.lst ]; then