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
#!/bin/bash | |
# extract the test list from flutter drive log and creates a file with [E] marking the failed ones | |
file="flutter-drive.log" | |
# get lines containing test titles (assuming they all contain a "TESTKEY-" string and titles are unique) | |
grep "^I/flutter .*TESTKEY-" "$file" > test-list | |
# remove extra lines related to failures | |
grep -v "The test description was:" test-list > tmpfile && mv tmpfile test-list | |
# get lines with skipped tests |