Skip to content

Commit c11c929

Browse files
committed
Merge branch 'latest' into net
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
2 parents 4ca3be2 + 25ee2dc commit c11c929

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

build.sh

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
cd "$(dirname "$(realpath -P "${0}")")"
55

6+
IMAGE=$(awk '/^FROM / {print $2; exit}' Dockerfile)
7+
if [ -z "$(docker images -q --filter reference="${IMAGE}")" ]; then
8+
# Not to have to re-check if there is a new image
9+
docker pull "${IMAGE}"
10+
fi
11+
612
ARGS=(
713
-t "${DOCKER_VIRTME_NAME:-mptcp/mptcp-upstream-virtme-docker:latest}"
814
-f Dockerfile

entrypoint.sh

+12-8
Original file line numberDiff line numberDiff line change
@@ -709,12 +709,14 @@ build() {
709709
return 0
710710
fi
711711

712+
ccache_stat
712713
build_kernel
713-
if [ "${EXPECT}" = 0 ] && with_clang; then
714+
if with_clang; then
714715
build_compile_commands || true # nice to have
715716
fi
716717
install_kernel_headers
717718
build_perf
719+
ccache_stat
718720
}
719721

720722
build_selftests() { local rc=0
@@ -1320,6 +1322,8 @@ run() {
13201322
run_expect() {
13211323
local timestamps_sec_stop
13221324

1325+
EXPECT=1
1326+
13231327
if is_ci; then
13241328
timestamps_sec_stop=$(date +%s)
13251329

@@ -1351,9 +1355,10 @@ sysrq() {
13511355
}
13521356
13531357
SLEEP_TIME=\$((TEST_TIMEOUT - DUMP_SEC))
1358+
echo "Background timeout script, waiting for \${SLEEP_TIME} seconds, will trigger at \$(date -d+\${SLEEP_TIME}sec)"
13541359
sleep \${SLEEP_TIME}
13551360
echo
1356-
echo "Timeout (\${SLEEP_TIME}sec): getting more info"
1361+
echo "Timeout (after \${SLEEP_TIME}sec): getting more info"
13571362
sysrq 'w'
13581363
sysrq 'd'
13591364
sysrq 'l'
@@ -1716,13 +1721,17 @@ analyze() {
17161721
set_trace_on
17171722
}
17181723

1719-
# $@: args for kconfig
1724+
# $1: type ; $2: mode ; [ $@:3: args for kconfig ]
17201725
prepare_all() { local t mode
17211726
t=${1}; shift
17221727
mode="${1}"
17231728

17241729
printinfo "Start: ${t} (${mode})"
17251730

1731+
if [ "${t}" = "auto" ]; then
1732+
EXPECT=1
1733+
fi
1734+
17261735
setup_env "${mode}"
17271736
gen_kconfig "${@}"
17281737
build
@@ -1737,16 +1746,11 @@ go_manual() {
17371746

17381747
# $1: mode ; [ $2+: kconfig ]
17391748
go_expect() {
1740-
EXPECT=1
1741-
17421749
check_last_iproute
17431750
check_source_exec_all
17441751

17451752
prepare_all auto "${@}"
1746-
ccache_stat
1747-
17481753
run_expect
1749-
ccache_stat
17501754
analyze "${@}"
17511755
}
17521756

0 commit comments

Comments
 (0)