mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-27 18:24:16 +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]}
|
extractedURL=${BASH_REMATCH[0]}
|
||||||
patchAccessResult=$(curl -s -w "%{http_code}" -o /dev/null "$extractedURL")
|
patchAccessResult=$(curl -s -w "%{http_code}" -o /dev/null "$extractedURL")
|
||||||
if [ "$patchAccessResult" -ne 200 ]; then
|
if [ "$patchAccessResult" -ne 200 ]; then
|
||||||
|
echo "⚠️ - $extractedURL"
|
||||||
update_line "$line" "inaccessible"
|
update_line "$line" "inaccessible"
|
||||||
continue
|
continue
|
||||||
fi
|
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=$?
|
patchApplicationExitCode=$?
|
||||||
if [ $patchApplicationExitCode -eq 0 ]; then
|
if [ $patchApplicationExitCode -eq 0 ]; then
|
||||||
printf "\e[32m[PASS]\e[0m %-40s\n" "$extractedURL"
|
echo "✅ - $extractedURL"
|
||||||
update_line "$line" "pass"
|
update_line "$line" "pass"
|
||||||
else
|
else
|
||||||
printf "\e[31m[FAIL]\e[0m %-40s\n" "$extractedURL"
|
echo "❌ - $extractedURL"
|
||||||
update_line "$line" "fail"
|
update_line "$line" "fail"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user