mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-27 10:14:14 +00:00
changed test status messages
This commit is contained in:
parent
4f7579cdc9
commit
5f1592fa7a
7
.github/workflows/testPatches.sh
vendored
7
.github/workflows/testPatches.sh
vendored
@ -24,17 +24,18 @@ for file in "$wikiDirectory"/*.md; do
|
||||
extractedURL=${BASH_REMATCH[0]}
|
||||
patchAccessResult=$(curl -s -w "%{http_code}" -o /dev/null "$extractedURL")
|
||||
if [ "$patchAccessResult" -ne 200 ]; then
|
||||
echo "⚠️ - $extractedURL"
|
||||
update_line "$line" "inaccessible"
|
||||
continue
|
||||
fi
|
||||
|
||||
git -C $dwlSrcDirectory apply --check <(curl -s "$extractedURL") > /dev/null 2>&1
|
||||
git -C "$dwlSrcDirectory" apply --check <(curl -s "$extractedURL") > /dev/null 2>&1
|
||||
patchApplicationExitCode=$?
|
||||
if [ $patchApplicationExitCode -eq 0 ]; then
|
||||
printf "\e[32m[PASS]\e[0m %-40s\n" "$extractedURL"
|
||||
echo "✅ - $extractedURL"
|
||||
update_line "$line" "pass"
|
||||
else
|
||||
printf "\e[31m[FAIL]\e[0m %-40s\n" "$extractedURL"
|
||||
echo "❌ - $extractedURL"
|
||||
update_line "$line" "fail"
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user