]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
tests: update newgrp tests to expect GID 1002
authorIker Pedrosa <ipedrosa@redhat.com>
Tue, 14 Apr 2026 11:31:24 +0000 (13:31 +0200)
committerSerge Hallyn <serge@hallyn.com>
Tue, 28 Apr 2026 13:17:39 +0000 (08:17 -0500)
Update test assertion to expect GID 1002 instead of 1001 to match
the new container environment where a CI user occupies ID 1000.

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
tests/system/tests/test_newgrp.py

index b955a8226f424807888cb00f88d8b3187c978907..a043f32d07a3e6fbe5c342a5e17a53f24598f094 100644 (file)
@@ -31,4 +31,4 @@ def test_newgrp__change_to_new_group(shadow: Shadow):
 
     cmd, gid = shadow.newgrp("tgroup", run_as="tuser")
     assert cmd.rc == 0, "newgrp command should succeed"
-    assert gid == 1001, f"Current GID should be {1001}, got {gid}"
+    assert gid == 1002, f"Current GID should be {1002}, got {gid}"