Skip to content

Commit

Permalink
Merge branch 'latest' into net
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
  • Loading branch information
matttbe committed Jul 12, 2024
2 parents 24c8acf + ccdd6d9 commit 815d21e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
14 changes: 5 additions & 9 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1211,10 +1211,6 @@ EOF
"${VIRTME_RUN_EXPECT}" | tee "${OUTPUT_VIRTME}"
}

_get_selftests_gen_files() {
grep TEST_GEN_FILES "${SELFTESTS_DIR}/Makefile" | cut -d= -f2
}

ccache_stat() {
if is_ci; then
log_section_start "CCache Stats"
Expand Down Expand Up @@ -1351,14 +1347,14 @@ _print_tests_results_subtests() { local tap ok
_print_tests_result() { local flaky
echo "All tests:"
# only from the main tests
grep --no-filename -E "^(not )?ok 1 test: " "${RESULTS_DIR}"/*.tap || true
grep --text --no-filename -E "^(not )?ok 1 test: " "${RESULTS_DIR}"/*.tap || true
_print_tests_results_subtests "kunit_"
_print_tests_results_subtests "packetdrill_"

if is_ci; then
flaky="$(grep --no-filename -F " # IGNORE Flaky" "${RESULTS_DIR}"/*_subtests.tap || true)"
flaky="$(grep --text --no-filename -F " # IGNORE Flaky" "${RESULTS_DIR}"/*_subtests.tap || true)"
else
flaky="$(grep --no-filename -F "[IGNO] (flaky)" "${RESULTS_DIR}"/*.tap || true)"
flaky="$(grep --text --no-filename -F "[IGNO] (flaky)" "${RESULTS_DIR}"/*.tap || true)"
fi
if [ -n "${flaky}" ]; then
echo
Expand All @@ -1376,7 +1372,7 @@ _print_failed_tests() { local t
_print_line
echo "- $(basename "${t}"):"
echo
grep -v "^ok [0-9]\+ " "${t}"
grep -av "^ok [0-9]\+ " "${t}"
fi
done
_print_line
Expand All @@ -1385,7 +1381,7 @@ _print_failed_tests() { local t
_get_failed_tests() {
# not ok 1 test: selftest_mptcp_join.tap # exit=1
# we just want the main results, not the detailed ones for the moment
grep "^not ok 1 test: " "${TESTS_SUMMARY}" | \
grep --text "^not ok 1 test: " "${TESTS_SUMMARY}" | \
awk '{ print $5 }' | \
sort -u | \
sed "s/\.tap$//g"
Expand Down
3 changes: 2 additions & 1 deletion vscode/settings-extra.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"clangd.arguments": [
"-compile-commands-dir=${workspaceFolder}/.virtme/build-clang"
"-compile-commands-dir=${workspaceFolder}/.virtme/build-clang",
"-header-insertion=never"
],
"files.watcherExclude": {
"**/.git/objects/**": true,
Expand Down

0 comments on commit 815d21e

Please sign in to comment.