Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit eedd68a

Browse files
committed
Improve webstandard tests.
- Switch back to the latest release - Add logging of each invocation to the artifacts - Create an empty config to silence a new warning of the tool itself
1 parent 5782543 commit eedd68a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎.github/jobs/webstandard.sh‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,10 @@ if [ "$TEST" = "w3cval" ]; then
117117
118118
section_start "Install testsuite"
119119
cd "$DIR"
120-
wget https://github.com/validator/validator/releases/download/20.6.30/vnu.linux.zip
120+
wget https://github.com/validator/validator/releases/download/latest/vnu.linux.zip
121121
unzip -q vnu.linux.zip
122+
# Remove a warning by creating an empty config.
123+
touch vnu.properties
122124
section_end
123125
124126
FLTR='--filterpattern .*autocomplete.*|.*role=tab.*|.*descendant.*|.*Stray.*|.*attribute.*|.*Forbidden.*|.*stream.*|.*obsolete.*'
@@ -128,7 +130,7 @@ if [ "$TEST" = "w3cval" ]; then
128130
# shellcheck disable=SC2086
129131
"$DIR"/vnu-runtime-image/bin/vnu --errors-only --exit-zero-always --skip-non-$typ --format json $FLTR "$URL" 2> result.json
130132
# shellcheck disable=SC2086
131-
NEWFOUNDERRORS=$("$DIR"/vnu-runtime-image/bin/vnu --errors-only --exit-zero-always --skip-non-$typ --format gnu $FLTR "$URL" 2>&1 | wc -l)
133+
NEWFOUNDERRORS=$("$DIR"/vnu-runtime-image/bin/vnu --errors-only --exit-zero-always --skip-non-$typ --format gnu $FLTR "$URL" 2>&1 | tee "$ARTIFACTS/w3c_${typ}_${URL}.log"|wc -l)
132134
FOUNDERR=$((NEWFOUNDERRORS+FOUNDERR))
133135
python3 -m "json.tool" < result.json > "$ARTIFACTS/w3c$typ$URL.json"
134136
trace_off; python3 .github/jobs/jsontogha.py "$ARTIFACTS/w3c$typ$URL.json"; trace_on

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /