-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ivyportal -17687-showing-flaky-test-on-result-LE (#1095)
- implement shell script to extract flaky result
- Loading branch information
1 parent
ad7b524
commit 7e7fc85
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
AxonIvyPortal/portal-selenium-test/resources/extractFlakyTests.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
if grep -q "\[WARNING\] Flakes:" logText.txt; then | ||
|
||
awk '/^\[WARNING\] Flakes:.*$/{flag=1}/^\[ERROR\] Tests run:.*Flakes: [0-9]*$/{print;flag=0}flag' logText.txt > flaky-tests-log.txt | ||
|
||
grep "\[WARNING\]" flaky-tests-log.txt | awk '{print}' > testReport.txt | ||
|
||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters