summaryrefslogtreecommitdiffstats
path: root/pw/tests/pw_lock.sh
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2015-05-27 01:19:58 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2015-05-27 01:19:58 +0000
commitd8b9e0faa3460c476b2e30e33f85d3c45d75832b (patch)
tree718a4865bc637195eba03ee314533bf4505046c9 /pw/tests/pw_lock.sh
parent07f6546979612511fa7f69bea50fe257e8ae562a (diff)
parent31af648934ea1701d783359919da4009225e7477 (diff)
downloadpw-darwin-d8b9e0faa3460c476b2e30e33f85d3c45d75832b.tar.gz
pw-darwin-d8b9e0faa3460c476b2e30e33f85d3c45d75832b.tar.zst
pw-darwin-d8b9e0faa3460c476b2e30e33f85d3c45d75832b.zip
Merge sync of head
Diffstat (limited to 'pw/tests/pw_lock.sh')
-rwxr-xr-xpw/tests/pw_lock.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/pw/tests/pw_lock.sh b/pw/tests/pw_lock.sh
index 070a6f9..9f14e24 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 -V ${HOME} useradd test || atf_fail "Creating test user"
- pw -V ${HOME} lock test || atf_fail "Locking the user"
+ ${PW} useradd test || atf_fail "Creating test user"
+ ${PW} 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 -V ${HOME} unlock test || atf_fail "Locking the user"
+ ${PW} unlock test || atf_fail "Locking the user"
atf_check -s exit:0 -o match:"^test:\*:1001:" \
grep "^test:\*:1001:" $HOME/master.passwd
}