forked from kata-containers/tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: practice filter scheme in setup.sh
since not all integration suites supported in aarch64 for now, ommiting unrelated installation in setup.sh could be necessary. Fixes: kata-containers#472 Signed-off-by: Penny Zheng <penny.zheng@arm.com> Signed-off-by: Wei Chen <Wei.Chen@arm.com>
- Loading branch information
Showing
2 changed files
with
46 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright (c) 2018 ARM Limited | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -e | ||
|
||
filter_test_script="${cidir}/filter_test_aarch64.sh" | ||
|
||
check_test_union() | ||
{ | ||
local test_union=$(bash -f ${filter_test_script}) | ||
flag="$1" | ||
# regex match | ||
[[ ${test_union} =~ ${flag} ]] && echo "true" | ||
|
||
echo "false" | ||
} | ||
|
||
CRIO=$(check_test_union crio) | ||
KUBERNETES=$(check_test_union kubernetes) | ||
OPENSHIFT=$(check_test_union openshift) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters