fix: add pytest to build.sh, fix hanging tests, add request timeouts

This commit is contained in:
2026-07-17 09:18:08 +03:00
parent b445449542
commit e1aa542917
4 changed files with 60 additions and 31 deletions
+7 -1
View File
@@ -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"