Skip to content

Commit 66059a4

Browse files
committed
utils: add a timeout to the integration tests
This will allow us to add test cases which may hang. The timeout here is taken from the value we use in the regular test suite (along with the check for the timeout requirements).
1 parent 773eec1 commit 66059a4

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
@@ -3124,8 +3124,11 @@ function build_and_test_installable_package() {
31243124
with_pushd "${PKG_TESTS_SANDBOX_PARENT}" \
31253125
call tar xzf "${package_for_host}"
31263126

3127+
if python -c import psutil ; then
3128+
TIMEOUT_ARGS=--timeout=3000 # 50 minutes
3129+
fi
31273130
with_pushd "${PKG_TESTS_SOURCE_DIR}" \
3128-
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}"
3131+
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}
31293132
fi
31303133
fi
31313134
}

0 commit comments

Comments
 (0)