Skip to content

Commit

Permalink
refactor: move scripts files
Browse files Browse the repository at this point in the history
  • Loading branch information
dlachaume committed Jan 30, 2024
1 parent 61a12e2 commit 98c081c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [ ! -e "$FILENAME" ]; then
exit 1
fi

echo "Analyzing headless test results from file: '$FILENAME'"
echo "Parse headless test results from file: '$FILENAME'"
if grep -q 'title="FAILED"' "$FILENAME"; then
FAILED_INFO=$(grep -oE '<div id="[^"]+" title="FAILED">([^<]+)' "$FILENAME" | awk 'NR==1 {print substr($0, index($0,$4))}')
echo "$FAILED_INFO"
Expand Down
File renamed without changes.
9 changes: 3 additions & 6 deletions .github/workflows/test-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ jobs:
CURRENT_ATTEMPT=$(( ${CURRENT_ATTEMPT} + 1 ))
if nc -z localhost 8080; then
echo "Server is ready."
sleep 5
break
fi
if [ "$CURRENT_ATTEMPT" -ge "$MAX_ATTEMPTS" ]; then
Expand All @@ -220,16 +219,14 @@ jobs:
done
- name: Run Chrome headless
working-directory: mithril-client-wasm
shell: bash
run: |
/usr/bin/google-chrome --headless --virtual-time-budget=120000 --dump-dom http://localhost:8080 > chrome-results.html
./analyze-headless-tests-results.sh chrome-results.html
./.github/workflows/scripts/parse-wasm-headless-tests-results.sh chrome-results.html
- name: Run Firefox headless
working-directory: mithril-client-wasm
shell: bash
run: |
pip install selenium
python3 run-firefox-headless.py
./analyze-headless-tests-results.sh firefox-results.html
python3 ./.github/workflows/scripts/run-wasm-tests-firefox-headless.py
./.github/workflows/scripts/parse-wasm-headless-tests-results.sh firefox-results.html

0 comments on commit 98c081c

Please sign in to comment.