diff options
Diffstat (limited to 'pw/tests/pw_lock.sh')
-rwxr-xr-x | pw/tests/pw_lock.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pw/tests/pw_lock.sh b/pw/tests/pw_lock.sh index 9f14e24..070a6f9 100755 --- a/pw/tests/pw_lock.sh +++ b/pw/tests/pw_lock.sh @@ -7,11 +7,11 @@ atf_test_case user_locking cleanup user_locking_body() { populate_etc_skel - ${PW} useradd test || atf_fail "Creating test user" - ${PW} lock test || atf_fail "Locking the user" + pw -V ${HOME} useradd test || atf_fail "Creating test user" + pw -V ${HOME} lock test || atf_fail "Locking the user" atf_check -s exit:0 -o match:"^test:\*LOCKED\*\*:1001:" \ grep "^test:\*LOCKED\*\*:1001:" $HOME/master.passwd - ${PW} unlock test || atf_fail "Locking the user" + pw -V ${HOME} unlock test || atf_fail "Locking the user" atf_check -s exit:0 -o match:"^test:\*:1001:" \ grep "^test:\*:1001:" $HOME/master.passwd } |