Skip to content

Commit

Permalink
[ATL-33499] improve e2e test results reporting (#1264)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaladak authored Jan 21, 2025
1 parent 6065fc9 commit 8013025
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -160,19 +160,17 @@ run-csi-baremetal-functional-tests:
sshpass -p '${PASSWORD}' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ${USERNAME}@${E2E_VM_SERVICE_NODE_IP} '. /root/venv/python3.12.2/bin/activate && cd /root/tests/e2e-test-framework && pip3 install -r requirements.txt && pytest --junitxml=test_results_csi_baremetal.xml ${TEST_FILTER_CSI_BAREMETAL}'; \
echo "Copying test results back to local machine..."; \
sshpass -p '${PASSWORD}' scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r ${USERNAME}@${E2E_VM_SERVICE_NODE_IP}:/root/tests/e2e-test-framework/test_results_csi_baremetal.xml ${PROJECT_DIR}/test_results_csi_baremetal.xml; \
TEST_EXIT_CODE=$$?; \
echo "Test exit code: $$TEST_EXIT_CODE"; \
if [ -e "${PROJECT_DIR}/test_results_csi_baremetal.xml" ]; then \
echo "Test results for csi-baremetal copied successfully."; \
else \
echo "Error: Failed to copy test results for csi-baremetal."; \
exit 1; \
fi; \
if [ $$TEST_EXIT_CODE -eq 0 ]; then \
if grep -q 'errors="0" failures="0"' "${PROJECT_DIR}/test_results_csi_baremetal.xml"; then \
echo "All tests for csi-baremetal passed successfully."; \
echo "SUCCESS" > build_status.txt; \
else \
echo "Functional tests for csi-baremetal failed."; \
echo "FAILURE" > build_status.txt; \
exit 1; \
fi; \

#cleanup test files on remote server
Expand Down

0 comments on commit 8013025

Please sign in to comment.