Skip to content

Commit

Permalink
Add IT test
Browse files Browse the repository at this point in the history
  • Loading branch information
vharseko committed Apr 1, 2024
1 parent e9e4a36 commit 615b690
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ jobs:
rm -rf openicf/logs
openicf/bin/ConnectorServer.sh /run &
timeout 2m bash -c 'until grep -q "ConnectorServer listening on" openicf/logs/ConnectorServer.log ; do sleep 5; done'
grep " ERROR " openicf/logs/ConnectorServer.log || echo "no error"
grep " ERROR " openicf/logs/ConnectorServer.log | wc -l | grep -q 0
! grep " ERROR " openicf/logs/ConnectorServer.log
- name: Test on Windows
if: runner.os == 'Windows'
run: |
Expand All @@ -63,8 +62,7 @@ jobs:
cmd /c "START /b openicf\bin\ConnectorServer.bat /run"
Start-Sleep -s 15
findstr "ConnectorServer listening on" openicf\logs\ConnectorServer.log
findstr " ERROR " openicf\logs\ConnectorServer.log || echo "no error"
findstr " ERROR " openicf\logs\ConnectorServer.log | find /c 'ERROR' | findstr "0"
findstr " ERROR " openicf\logs\ConnectorServer.log || if %ERRORLEVEL% EQU 1 (echo "no error") else assertError
- name: Upload failure artifacts
uses: actions/upload-artifact@v4
if: ${{ failure() }}
Expand Down

0 comments on commit 615b690

Please sign in to comment.