Skip to content

Commit f1f7322

Browse files
Test Userpadelsbach
authored andcommitted
add correct check for status
1 parent 1612c6c commit f1f7322

2 files changed

Lines changed: 44 additions & 5 deletions

File tree

scripts/test-git-ssh-dr.sh

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
11
#!/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+
#
320
# Local test script for wolfProvider git operations
421
# This script tests git operations with wolfProvider
522
# as the default replace provider
623

7-
set -e
8-
924
echo "=== wolfProvider Git Operations Local Test ==="
1025
echo "Testing git operations with wolfProvider default replace functionality"
1126
echo ""
@@ -163,9 +178,15 @@ test_git_operations() {
163178
ls -la cloned-repo/
164179
echo "Git status in cloned repo:"
165180
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
167185
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
169190
cd ..
170191
else
171192
print_status "FAILURE" "cloned-repo directory not found after successful clone"

scripts/verify-debian.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
#!/bin/bash
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+
#
220
# This script verifies that wolfProvider is correctly installed and configured
321
# on Debian with default replace. It can be sourced to set verification status
422
# or executed for standalone verification.

0 commit comments

Comments
 (0)