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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user