diff options
| author | Kyle Evans <kevans@FreeBSD.org> | 2026-04-23 02:59:21 +0000 |
|---|---|---|
| committer | Kyle Evans <kevans@FreeBSD.org> | 2026-04-23 03:02:38 +0000 |
| commit | 8d680381c89d8a8d1c0519a7eaa14ba41724b930 (patch) | |
| tree | ab7257341882918f15f94915eebbbe68b9f5a0b3 | |
| parent | 1f41f56991a1a8cc836fa41fa7bb59150b46e8d5 (diff) | |
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
| -rwxr-xr-x | usr.sbin/jail/tests/jail_basic_test.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/jail/tests/jail_basic_test.sh b/usr.sbin/jail/tests/jail_basic_test.sh index c781eed78756..cb50a94a45e8 100755 --- a/usr.sbin/jail/tests/jail_basic_test.sh +++ b/usr.sbin/jail/tests/jail_basic_test.sh @@ -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 |
