generic/317: use id to get user id
authorEryu Guan <eguan@redhat.com>
Fri, 23 Sep 2016 15:32:27 +0000 (23:32 +0800)
committerEryu Guan <eguan@redhat.com>
Mon, 26 Sep 2016 02:17:29 +0000 (10:17 +0800)
commitdc913dcfcb989454185ccf579b2e7c8c52636499
tree18810fc9ec134d530fd51ea06df1ededb5f153e4
parent0bbd20b104765c75faaf8e28a54c32df505ce7fd
generic/317: use id to get user id

Greping username "fsgqa" in passwd file to get user id doesn't
always work, because the given username could match multiple
entries, e.g. when we have user "123456-fsgqa" (used by other tests)
in passwd file.

Fix it by using "id -u $qa_user" to get the user id directly.

Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/317