fix: add pytest to build.sh, fix hanging tests, add request timeouts
This commit is contained in:
@@ -49,10 +49,16 @@ fi
|
||||
echo "==> Build"
|
||||
cmake --build "${BUILD_DIR}" -j$(nproc)
|
||||
|
||||
echo "==> Run tests"
|
||||
echo "==> Run C++ tests"
|
||||
rm -rf /tmp/pipeline-runner-test/
|
||||
"${BUILD_DIR}/test-pipeline-runner" \
|
||||
--gtest_brief=1 \
|
||||
--gtest_output=xml:"${BUILD_DIR}/test-results.xml"
|
||||
|
||||
if [ "${FAKE}" = true ]; then
|
||||
echo "==> Run Python tests"
|
||||
timeout 60 python3 -m pytest "${SCRIPT_DIR}/tests" --tb=line -q \
|
||||
--junitxml="${BUILD_DIR}/python-test-results.xml"
|
||||
fi
|
||||
|
||||
echo "==> Done"
|
||||
|
||||
Reference in New Issue
Block a user