From: Christian Goeschel Ndjomouo Date: Thu, 22 Jan 2026 01:08:57 +0000 (-0500) Subject: tests: (chfn) test all long options X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88d06428c0badf1811d73eea395445eaf81d43bb;p=thirdparty%2Futil-linux.git tests: (chfn) test all long options Signed-off-by: Christian Goeschel Ndjomouo --- diff --git a/tests/expected/chfn/gecos b/tests/expected/chfn/gecos index af7b81b6c..349e01f56 100644 --- a/tests/expected/chfn/gecos +++ b/tests/expected/chfn/gecos @@ -3,4 +3,7 @@ testuser_chfn_test:x:9899:9899::/home/testuser_chfn_test:/bin/bash Changing finger information for testuser_chfn_test. Finger information changed. -testuser_chfn_test:x:9899:9899:test_gecos:/home/testuser_chfn_test:/bin/bash +Changing finger information for testuser_chfn_test. + +Finger information changed. +testuser_chfn_test:x:9899:9899:test_gecos,none,111,222:/home/testuser_chfn_test:/bin/bash diff --git a/tests/ts/chfn/gecos b/tests/ts/chfn/gecos index f7a0bdb28..b95a920a9 100755 --- a/tests/ts/chfn/gecos +++ b/tests/ts/chfn/gecos @@ -32,7 +32,9 @@ ts_check_prog "userdel" ts_log "Initialize user" useradd -u 9899 --shell /bin/bash testuser_chfn_test grep testuser /etc/passwd >> $TS_OUTPUT -$TS_CMD_CHFN -f test_gecos testuser_chfn_test >>$TS_OUTPUT +$TS_CMD_CHFN --full-name test_gecos --office none --office-phone 111 \ + testuser_chfn_test >>$TS_OUTPUT +$TS_CMD_CHFN --home-phone 222 testuser_chfn_test >>$TS_OUTPUT grep testuser /etc/passwd >> $TS_OUTPUT userdel --remove testuser_chfn_test &> /dev/null ts_finalize