]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstests: check if qa user can execute commands
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Tue, 6 Dec 2011 09:56:29 +0000 (10:56 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 8 Dec 2011 17:11:38 +0000 (17:11 +0000)
commitb2a0a1c69885e1f8115d7600627269bf74189d9c
tree2042acf60e463d64f723e3ba3a6b0e7a99621b51
parentbea2997f0894d33f2ffea1135259dc58754c040f
xfstests: check if qa user can execute commands

_require_user only checks if the qa user exists in /etc/passwd. It may exist
though still not be able to execute anything (e.g. with a /bin/false shell).

_user_do cannot determine failure to execute the given command, as it uses
_user_do_filter for post-processing which succeeds even if the command
fails. Thus, the check should be performed by _require_user.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Signed-off-by: Christoph Hellwig <hch@lst.de>
common.rc