Archived
kbench: skip the report check where python3 is absent, like ops_doc
The counting is one python3 pass; exit 77 (ctest's SKIP_RETURN_CODE) where python3 is not present, the same posture ops_doc takes for plugins that will not dump.
This commit is contained in:
1 parent
1f4f4420e9
commit
bbf90ebaa2
2 files changed
+3
No files matched your search
@@ -603,6 +603,7 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/docs/KERNELS.md)
|
||||
${CMAKE_SOURCE_DIR}/docs/KERNELS.md)
|
||||
set_tests_properties(kernel_report_check PROPERTIES
|
||||
LABELS "fast;unit"
|
||||
SKIP_RETURN_CODE 77
|
||||
TIMEOUT ${RAD_TEST_TIMEOUT})
|
||||
endif()
|
||||
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
set -u
|
||||
REPORT=$1
|
||||
test -f "$REPORT" || { echo "kernel_report_check: no report at $REPORT"; exit 1; }
|
||||
# The counting is one python3 pass; a host without it skips, like ops_doc's skip codes.
|
||||
command -v python3 >/dev/null 2>&1 || { echo " SKIP python3 not present"; exit 77; }
|
||||
|
||||
python3 - "$REPORT" <<'PY'
|
||||
import re, sys
|
||||
|
||||
Reference in new issue
Block a user