Skip to content

Commit b153cf5

Browse files
committed
Add IT test
1 parent 7626f75 commit b153cf5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ jobs:
4848
rm -rf openicf/logs
4949
openicf/bin/ConnectorServer.sh /run &
5050
timeout 2m bash -c 'until grep -q "ConnectorServer listening on" openicf/logs/ConnectorServer.log ; do sleep 5; done'
51-
grep -q " ERROR " openicf/logs/ConnectorServer.log || echo "no error"
52-
grep -q " ERROR " openicf/logs/ConnectorServer.log | wc -l | grep -q 0
51+
grep -q " ERROR " openicf/logs/ConnectorServer.log && echo "log contains errors" && $(exit 1)
5352
- name: Test on Windows
5453
if: runner.os == 'Windows'
5554
run: |
@@ -63,8 +62,7 @@ jobs:
6362
cmd /c "START /b openicf\bin\ConnectorServer.bat /run"
6463
Start-Sleep -s 15
6564
findstr "ConnectorServer listening on" openicf\logs\ConnectorServer.log
66-
findstr " ERROR " openicf\logs\ConnectorServer.log || echo "no error"
67-
findstr " ERROR " openicf\logs\ConnectorServer.log | find /c 'ERROR' | findstr "0"
65+
findstr " ERROR " openicf\logs\ConnectorServer.log && echo "log contains errors" && assert
6866
- name: Upload failure artifacts
6967
uses: actions/upload-artifact@v4
7068
if: ${{ failure() }}

0 commit comments

Comments
 (0)