selftest: Fix bug of collecting test RPMs from argument

Currently, TEST_RPMS would be only using the last RPM.
Append each RPM path to TEST_RPMs instead,

Signed-off-by: Coiby Xu <coxu@redhat.com>
Acked-by: Kairui Song <kasong@redhat.com>
This commit is contained in:
Coiby Xu 2021-03-24 11:10:34 +08:00 committed by Kairui Song
parent e5a745ce77
commit 0dedb2c91a

View File

@ -6,7 +6,7 @@ for _rpm in $@; do
if [[ ! -e $_rpm ]]; then
perror_exit "'$_rpm' not found"
else
TEST_RPMS=$(realpath "$_rpm")
TEST_RPMS="$TEST_RPMS $(realpath "$_rpm")"
fi
done