mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 05:26:58 +02:00
Ignore packages that cannot be found for the target.
Change-Id: I1b08fe7fe292605543579af0df358cb2fcbf0b97 BUG= TEST=Ran it with dev-utils/crosutils Review URL: http://codereview.chromium.org/5281001
This commit is contained in:
parent
e4836188a8
commit
98e73f154e
@ -58,7 +58,14 @@ set -e
|
|||||||
[ -z "${FLAGS_board}" ] && die "--board required"
|
[ -z "${FLAGS_board}" ] && die "--board required"
|
||||||
|
|
||||||
# Create package list from package file and list of packages.
|
# Create package list from package file and list of packages.
|
||||||
[ -n "${FLAGS_package_file}" ] && PACKAGE_LIST="$(cat ${FLAGS_package_file})"
|
if [ -n "${FLAGS_package_file}" ]; then
|
||||||
|
if [ -f "${FLAGS_package_file}" ]; then
|
||||||
|
PACKAGE_LIST="$(cat ${FLAGS_package_file})"
|
||||||
|
else
|
||||||
|
warn "Missing package file."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
[ -n "${FLAGS_packages}" ] && PACKAGE_LIST="${PACKAGE_LIST} ${FLAGS_packages}"
|
[ -n "${FLAGS_packages}" ] && PACKAGE_LIST="${PACKAGE_LIST} ${FLAGS_packages}"
|
||||||
|
|
||||||
# If we didn't specify packages, find all packages.
|
# If we didn't specify packages, find all packages.
|
||||||
@ -74,7 +81,8 @@ for package in ${PACKAGE_LIST}; do
|
|||||||
warn "Skipping package ${package} since it is blacklisted."
|
warn "Skipping package ${package} since it is blacklisted."
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
EBUILD_PATH=$( equery-${FLAGS_board} which ${package} 2> /dev/null )
|
EBUILD_PATH=$( equery-${FLAGS_board} which ${package} 2> /dev/null ) || \
|
||||||
|
warn "${package} not found"
|
||||||
if [ -n "${EBUILD_PATH}" ]; then
|
if [ -n "${EBUILD_PATH}" ]; then
|
||||||
if check_src_test "${EBUILD_PATH}"; then
|
if check_src_test "${EBUILD_PATH}"; then
|
||||||
run_unit_test "${EBUILD_PATH}" || record_test_failure "${package}"
|
run_unit_test "${EBUILD_PATH}" || record_test_failure "${package}"
|
||||||
|
Loading…
Reference in New Issue
Block a user