diff options
author | 2014-11-19 23:07:46 +0000 | |
---|---|---|
committer | 2014-11-19 23:07:46 +0000 | |
commit | db6b0912de06dd7c8a2f9749c463ad98f19c978b (patch) | |
tree | 7818d898a8f5eb513263a3fcd39e2741e6e3e39e /pw/tests/pw_lock.sh | |
parent | 04c1a8669ab01c8bb76f4cbf48aa2f8c56fa80e9 (diff) | |
download | pw-darwin-db6b0912de06dd7c8a2f9749c463ad98f19c978b.tar.gz pw-darwin-db6b0912de06dd7c8a2f9749c463ad98f19c978b.tar.zst pw-darwin-db6b0912de06dd7c8a2f9749c463ad98f19c978b.zip |
Replace the pw(1) calls with a variable, to make it easier to to change across all the tests as needed.
Reviewed by: will
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 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 } |