|
1 | 1 | #!/bin/bash |
2 | | - |
| 2 | +# |
| 3 | +# Copyright (C) 2006-2024 wolfSSL Inc. |
| 4 | +# |
| 5 | +# This file is part of wolfProvider. |
| 6 | +# |
| 7 | +# wolfProvider is free software; you can redistribute it and/or modify |
| 8 | +# it under the terms of the GNU General Public License as published by |
| 9 | +# the Free Software Foundation; either version 3 of the License, or |
| 10 | +# (at your option) any later version. |
| 11 | +# |
| 12 | +# wolfProvider is distributed in the hope that it will be useful, |
| 13 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | +# GNU General Public License for more details. |
| 16 | +# |
| 17 | +# You should have received a copy of the GNU General Public License |
| 18 | +# along with wolfProvider. If not, see <http://www.gnu.org/licenses/>. |
| 19 | +# |
3 | 20 | # Local test script for wolfProvider git operations |
4 | 21 | # This script tests git operations with wolfProvider |
5 | 22 | # as the default replace provider |
6 | 23 |
|
7 | | -set -e |
8 | | - |
9 | 24 | echo "=== wolfProvider Git Operations Local Test ===" |
10 | 25 | echo "Testing git operations with wolfProvider default replace functionality" |
11 | 26 | echo "" |
@@ -163,9 +178,15 @@ test_git_operations() { |
163 | 178 | ls -la cloned-repo/ |
164 | 179 | echo "Git status in cloned repo:" |
165 | 180 | cd cloned-repo |
166 | | - git status || echo "Git status failed (this may be normal)" |
| 181 | + if ! git status 2>/dev/null; then |
| 182 | + echo "WARNING: Git status failed - potential wolfProvider interference" |
| 183 | + print_status "WARNING" "Git status failed in cloned repo" |
| 184 | + fi |
167 | 185 | echo "Git log in cloned repo:" |
168 | | - git log --oneline | head -${MAX_LOG_LINES} || echo "Git log failed" |
| 186 | + if ! git log --oneline | head -${MAX_LOG_LINES} 2>/dev/null; then |
| 187 | + echo "WARNING: Git log failed - potential wolfProvider interference" |
| 188 | + print_status "WARNING" "Git log failed in cloned repo" |
| 189 | + fi |
169 | 190 | cd .. |
170 | 191 | else |
171 | 192 | print_status "FAILURE" "cloned-repo directory not found after successful clone" |
|
0 commit comments