This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user