git: 76212e6591f3 - main - nuageinit: Fix typo, whitespace, and lua style in new test

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Fri, 20 Nov 2026 14:23:55 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=76212e6591f302644111e0d86a6750c978d7b6ec

commit 76212e6591f302644111e0d86a6750c978d7b6ec
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-11-19 15:37:38 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-11-20 14:23:20 +0000

    nuageinit: Fix typo, whitespace, and lua style in new test
    
    Fixes: e82b8378de19 ("nuageinit: Also add -n to pw usermod and pw groupshow")
    Sponsored by:   The FreeBSD Foundation
---
 libexec/nuageinit/tests/adduser.lua | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libexec/nuageinit/tests/adduser.lua b/libexec/nuageinit/tests/adduser.lua
index 89ae574c3ddf..3b57fe2f8a84 100644
--- a/libexec/nuageinit/tests/adduser.lua
+++ b/libexec/nuageinit/tests/adduser.lua
@@ -25,12 +25,12 @@ end
 for _, name in ipairs({"underscore_", "0"}) do
 	pw = {}
 	pw.name = name
-	-- Call adduser twice to test both addding and looking up an existing
+	-- Call adduser twice to test both adding and looking up an existing
 	-- user.
-	for i = 1, 2 do
+	for _ = 1, 2 do
 		local res = n.adduser(pw)
 		if not ends_with(res, "/" .. name) then
-			n.err("expected .../" .. name ..  " for username " ..
+			n.err("expected .../" .. name .. " for username " ..
 			    name .. ", got " .. tostring(res))
 		end
 	end