-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: enhance readability checks for xml files in test_results direc…
…tory
- Loading branch information
Showing
1 changed file
with
14 additions
and
8 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -213,14 +213,20 @@ jobs: | |
- name: Ensure junit-path exists and that all xml files are readable in path 'test_results/**/*xml' with this syntax | ||
run: | | ||
if [ ! -d "test_results" ]; then | ||
echo "Warning: test_results directory does not exist" | ||
elif ! ls test_results/*xml 1> /dev/null 2>&1; then | ||
echo "Warning: No xml files found in test_results directory" | ||
elif ! ls -l test_results/*xml 1> /dev/null 2>&1; then | ||
echo "Warning: Not all xml files in test_results directory are readable" | ||
else | ||
echo "All xml files in test_results directory are readable" | ||
ls -l test_results/*xml | ||
echo "test_results directory does not exist" | ||
exit 0 | ||
fi | ||
if ! ls test_results/*xml 1> /dev/null 2>&1; then | ||
echo "No xml files found in test_results directory" | ||
exit 0 | ||
fi | ||
if ! ls -l test_results/*xml 1> /dev/null 2>&1; then | ||
echo "Not all xml files in test_results directory are readable" | ||
exit 0 | ||
fi | ||
echo "All xml files in test_results directory are readable" | ||
ls -l test_results/*xml | ||
- name: Setup tmate session | ||
uses: mxschmitt/[email protected] | ||
|