output
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled

This commit is contained in:
CanbiZ 2025-10-16 22:50:53 +02:00
parent 6775dc41dd
commit f9191b4437

View File

@ -103,9 +103,10 @@ test_function() {
echo "=== Test: ${test_name} ===" echo "=== Test: ${test_name} ==="
echo "Command: ${test_command}" echo "Command: ${test_command}"
echo "Started: $(date)" echo "Started: $(date)"
} >>"$TEST_LOG" } | tee -a "$TEST_LOG"
if eval "$test_command" >>"$TEST_LOG" 2>&1; then # Execute installation with output visible AND logged
if eval "$test_command" 2>&1 | tee -a "$TEST_LOG"; then
# Reload PATH after installation # Reload PATH after installation
reload_path reload_path
@ -116,9 +117,11 @@ test_function() {
((TESTS_PASSED++)) ((TESTS_PASSED++))
else else
msg_error "${test_name} - Installation succeeded but validation failed" msg_error "${test_name} - Installation succeeded but validation failed"
echo "Validation command: $validation_cmd" >>"$TEST_LOG" {
echo "Validation output: $output" >>"$TEST_LOG" echo "Validation command: $validation_cmd"
echo "PATH: $PATH" >>"$TEST_LOG" echo "Validation output: $output"
echo "PATH: $PATH"
} | tee -a "$TEST_LOG"
((TESTS_FAILED++)) ((TESTS_FAILED++))
fi fi
else else
@ -127,12 +130,12 @@ test_function() {
fi fi
else else
msg_error "${test_name} - Installation failed" msg_error "${test_name} - Installation failed"
echo "Installation failed" >>"$TEST_LOG" echo "Installation failed" | tee -a "$TEST_LOG"
((TESTS_FAILED++)) ((TESTS_FAILED++))
fi fi
echo "Completed: $(date)" >>"$TEST_LOG" echo "Completed: $(date)" | tee -a "$TEST_LOG"
echo "" >>"$TEST_LOG" echo "" | tee -a "$TEST_LOG"
} }
# Skip test with reason # Skip test with reason