mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 14:41:31 +02:00
Adding blacklist support for unit tests and blacklisting currently failing tests.
TEST=Ran cros_run_unit_tests with no arguments and it returned 0. Review URL: http://codereview.chromium.org/2818021
This commit is contained in:
parent
13adf4efc5
commit
b4529fa675
@ -63,7 +63,13 @@ else
|
||||
PACKAGE_LIST=$( ./get_package_list chromeos | egrep '^chromeos-base' )
|
||||
fi
|
||||
|
||||
BLACK_LIST_FILE="$(dirname "$0")/unit_test_black_list.txt"
|
||||
|
||||
for package in ${PACKAGE_LIST}; do
|
||||
if grep -xq "${package}" "${BLACK_LIST_FILE}"; then
|
||||
warn "Skipping package ${package} since it is blacklisted."
|
||||
continue
|
||||
fi
|
||||
EBUILD_PATH=$( equery-${FLAGS_board} which ${package} 2> /dev/null )
|
||||
if [ -n "${EBUILD_PATH}" ]; then
|
||||
if check_src_test "${EBUILD_PATH}"; then
|
||||
|
2
unit_test_black_list.txt
Normal file
2
unit_test_black_list.txt
Normal file
@ -0,0 +1,2 @@
|
||||
chromeos-base/pam_offline
|
||||
chromeos-base/update_engine
|
Loading…
x
Reference in New Issue
Block a user