'Generic Commit'
Some checks failed
Build-Test-Publish / build (push) Failing after 20s

This commit is contained in:
Your Name
2025-06-17 21:51:36 +12:00
parent b4542c24be
commit f20c8ff330
6 changed files with 254 additions and 173 deletions

View File

@ -292,7 +292,10 @@ fi
# Test 13: Invalid tool name validation
echo -e "\nTest 13: Invalid tool name validation"
INVALID_OUTPUT=$(timeout 3 "$GETPKG" install "../evil-tool" 2>&1) || INVALID_OUTPUT=""
INVALID_OUTPUT=$(timeout 3 "$GETPKG" install "../evil-tool" 2>&1)
INVALID_EXIT_CODE=$?
echo "Invalid tool output: $INVALID_OUTPUT"
echo "Invalid tool exit code: $INVALID_EXIT_CODE"
if [[ "$INVALID_OUTPUT" =~ "Invalid tool name" ]]; then
print_test_result "Invalid tool name rejection" 0
else