]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc-test-unpriv: check user existence before removing it 1936/head
authorPo-Hsu Lin <po-hsu.lin@canonical.com>
Wed, 22 Nov 2017 08:11:34 +0000 (03:11 -0500)
committerPo-Hsu Lin <po-hsu.lin@canonical.com>
Wed, 22 Nov 2017 08:11:46 +0000 (03:11 -0500)
commit438c96e96a91388b91d02c18b5e0d6c89816ae5a
tree5e33c9182e3795274cfdd24fb2acd65f33968ebb
parentba715de0b5c3874ebd3f60e7b4dcb78c2932ba25
lxc-test-unpriv: check user existence before removing it

Check the test user (lxcunpriv) before calling deluser command,
otherwise it will print unnecessary error message:
/usr/sbin/deluser: The user 'lxcunpriv' does not exist.

Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
src/tests/lxc-test-unpriv