mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-07 17:19:07 +08:00
ci: Gracefully handle test names with spaces inside
Cherry pick of pieces of f909f8bf110d ("ci: temporarily disable
test_btf_dump_case") from vmtest to handle spaces in test names
properly.
Signed-off-by: Daniel Müller <deso@posteo.net>
This commit is contained in:
committed by
Andrii Nakryiko
parent
e021ccbd7d
commit
9710829e78
@@ -13,7 +13,7 @@ read_lists() {
|
|||||||
if [[ -s "$path" ]]; then
|
if [[ -s "$path" ]]; then
|
||||||
cat "$path"
|
cat "$path"
|
||||||
fi;
|
fi;
|
||||||
done) | cut -d'#' -f1 | tr -s ' \t\n' ','
|
done) | cut -d'#' -f1 | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' | tr -s '\n' ','
|
||||||
}
|
}
|
||||||
|
|
||||||
test_progs() {
|
test_progs() {
|
||||||
@@ -22,7 +22,7 @@ test_progs() {
|
|||||||
# "&& true" does not change the return code (it is not executed
|
# "&& true" does not change the return code (it is not executed
|
||||||
# if the Python script fails), but it prevents exiting on a
|
# if the Python script fails), but it prevents exiting on a
|
||||||
# failure due to the "set -e".
|
# failure due to the "set -e".
|
||||||
./test_progs ${DENYLIST:+-d$DENYLIST} ${ALLOWLIST:+-a$ALLOWLIST} && true
|
./test_progs ${DENYLIST:+-d"$DENYLIST"} ${ALLOWLIST:+-a"$ALLOWLIST"} && true
|
||||||
echo "test_progs:$?" >> "${STATUS_FILE}"
|
echo "test_progs:$?" >> "${STATUS_FILE}"
|
||||||
foldable end test_progs
|
foldable end test_progs
|
||||||
fi
|
fi
|
||||||
@@ -30,7 +30,7 @@ test_progs() {
|
|||||||
|
|
||||||
test_progs_no_alu32() {
|
test_progs_no_alu32() {
|
||||||
foldable start test_progs-no_alu32 "Testing test_progs-no_alu32"
|
foldable start test_progs-no_alu32 "Testing test_progs-no_alu32"
|
||||||
./test_progs-no_alu32 ${DENYLIST:+-d$DENYLIST} ${ALLOWLIST:+-a$ALLOWLIST} && true
|
./test_progs-no_alu32 ${DENYLIST:+-d"$DENYLIST"} ${ALLOWLIST:+-a"$ALLOWLIST"} && true
|
||||||
echo "test_progs-no_alu32:$?" >> "${STATUS_FILE}"
|
echo "test_progs-no_alu32:$?" >> "${STATUS_FILE}"
|
||||||
foldable end test_progs-no_alu32
|
foldable end test_progs-no_alu32
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user