File tree 2 files changed +18
-8
lines changed
2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change 3
3
4
4
cd " $( dirname " $( realpath -P " ${0} " ) " ) "
5
5
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
+
6
12
ARGS=(
7
13
-t " ${DOCKER_VIRTME_NAME:- mptcp/ mptcp-upstream-virtme-docker: latest} "
8
14
-f Dockerfile
Original file line number Diff line number Diff line change @@ -709,12 +709,14 @@ build() {
709
709
return 0
710
710
fi
711
711
712
+ ccache_stat
712
713
build_kernel
713
- if [ " ${EXPECT} " = 0 ] && with_clang; then
714
+ if with_clang; then
714
715
build_compile_commands || true # nice to have
715
716
fi
716
717
install_kernel_headers
717
718
build_perf
719
+ ccache_stat
718
720
}
719
721
720
722
build_selftests () { local rc=0
@@ -1320,6 +1322,8 @@ run() {
1320
1322
run_expect () {
1321
1323
local timestamps_sec_stop
1322
1324
1325
+ EXPECT=1
1326
+
1323
1327
if is_ci; then
1324
1328
timestamps_sec_stop=$( date +%s)
1325
1329
@@ -1351,9 +1355,10 @@ sysrq() {
1351
1355
}
1352
1356
1353
1357
SLEEP_TIME=\$ ((TEST_TIMEOUT - DUMP_SEC))
1358
+ echo "Background timeout script, waiting for \$ {SLEEP_TIME} seconds, will trigger at \$ (date -d+\$ {SLEEP_TIME}sec)"
1354
1359
sleep \$ {SLEEP_TIME}
1355
1360
echo
1356
- echo "Timeout (\$ {SLEEP_TIME}sec): getting more info"
1361
+ echo "Timeout (after \$ {SLEEP_TIME}sec): getting more info"
1357
1362
sysrq 'w'
1358
1363
sysrq 'd'
1359
1364
sysrq 'l'
@@ -1716,13 +1721,17 @@ analyze() {
1716
1721
set_trace_on
1717
1722
}
1718
1723
1719
- # $@: args for kconfig
1724
+ # $1: type ; $2: mode ; [ $@:3: args for kconfig ]
1720
1725
prepare_all () { local t mode
1721
1726
t=${1} ; shift
1722
1727
mode=" ${1} "
1723
1728
1724
1729
printinfo " Start: ${t} (${mode} )"
1725
1730
1731
+ if [ " ${t} " = " auto" ]; then
1732
+ EXPECT=1
1733
+ fi
1734
+
1726
1735
setup_env " ${mode} "
1727
1736
gen_kconfig " ${@ } "
1728
1737
build
@@ -1737,16 +1746,11 @@ go_manual() {
1737
1746
1738
1747
# $1: mode ; [ $2+: kconfig ]
1739
1748
go_expect () {
1740
- EXPECT=1
1741
-
1742
1749
check_last_iproute
1743
1750
check_source_exec_all
1744
1751
1745
1752
prepare_all auto " ${@ } "
1746
- ccache_stat
1747
-
1748
1753
run_expect
1749
- ccache_stat
1750
1754
analyze " ${@ } "
1751
1755
}
1752
1756
You can’t perform that action at this time.
0 commit comments