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 <[email protected]>
  • Loading branch information
matttbe committed Jul 19, 2023
2 parents 1b78a82 + d879dd7 commit c7f322e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ set_trace_on
: "${INPUT_CPUS:=""}"
: "${INPUT_CI_RESULTS_DIR:=""}"
: "${INPUT_CI_PRINT_EXIT_CODE:=1}"
: "${INPUT_EXPECT_TIMEOUT:="-1"}"

: "${PACKETDRILL_GIT_BRANCH:=mptcp-net-next}"
: "${CI_TIMEOUT_SEC:=7200}"
Expand Down Expand Up @@ -775,7 +776,7 @@ fi
if [ -f "${VIRTME_EXEC_RUN}" ]; then
echo -e "\n\n\tNot running all tests but:\n\n"
echo "-------- 8< --------"
cat "${VIRTME_EXEC_RUN}"
sed "s/#.*//g;/^\s*$/d" "${VIRTME_EXEC_RUN}"
echo "-------- 8< --------"
source "${VIRTME_EXEC_RUN}"
# e.g.:
Expand Down Expand Up @@ -823,7 +824,7 @@ run_expect() {
VIRTME_EXPECT_TIMEOUT=$((CI_TIMEOUT_SEC - (timestamps_sec_stop - TIMESTAMPS_SEC_START) - VIRTME_EXPECT_TIMEOUT))
else
# disable timeout
VIRTME_EXPECT_TIMEOUT="-1"
VIRTME_EXPECT_TIMEOUT="${INPUT_EXPECT_TIMEOUT}"
fi

printinfo "Run the virtme script: expect (timeout: ${VIRTME_EXPECT_TIMEOUT})"
Expand All @@ -849,7 +850,9 @@ expect {
send_user "validation script ended with success\n"
} timeout {
send_user "Timeout: sending Ctrl+C\n"
send "\x03"
send "\x03\r"
sleep 2
send "\x03\r"
} eof {
send_user "Unexpected stop of the VM\n"
exit 1
Expand Down
1 change: 1 addition & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ docker run \
-e "INPUT_PACKETDRILL_NO_SYNC=${VIRTME_PACKETDRILL_PATH:+1}" \
-e "INPUT_PACKETDRILL_NO_MORE_TOLERANCE=${INPUT_PACKETDRILL_NO_MORE_TOLERANCE:-${VIRTME_PACKETDRILL_PATH:+1}}" \
-e "INPUT_PACKETDRILL_STABLE=${VIRTME_PACKETDRILL_STABLE:-0}" \
-e "INPUT_EXPECT_TIMEOUT" \
-e "COMPILER" \
--privileged \
--rm \
Expand Down

0 comments on commit c7f322e

Please sign in to comment.