Skip to content

Commit 2b67a9d

Browse files
authored
Merge pull request #33774 from compnerd/timeout
utils: add a timeout to the integration tests
2 parents ddb43e3 + 9f01742 commit 2b67a9d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/build-script-impl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3129,8 +3129,11 @@ function build_and_test_installable_package() {
31293129
with_pushd "${PKG_TESTS_SANDBOX_PARENT}" \
31303130
call tar xzf "${package_for_host}"
31313131

3132+
if python -c "import psutil" ; then
3133+
TIMEOUT_ARGS=--timeout=1200 # 20 minutes
3134+
fi
31323135
with_pushd "${PKG_TESTS_SOURCE_DIR}" \
3133-
call python "${LIT_EXECUTABLE_PATH}" . -sv --param package-path="${PKG_TESTS_SANDBOX}" --param test-exec-root="${PKG_TESTS_TEMPS}" --param llvm-bin-dir="${LLVM_BIN_DIR}"
3136+
call python "${LIT_EXECUTABLE_PATH}" . -sv --param package-path="${PKG_TESTS_SANDBOX}" --param test-exec-root="${PKG_TESTS_TEMPS}" --param llvm-bin-dir="${LLVM_BIN_DIR}" ${TIMEOUT_ARGS}
31343137
fi
31353138
fi
31363139
}

0 commit comments

Comments
 (0)