forked from aws/aws-sdk-cpp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request aws#96 in VFS/bamboos from bugfix/VFS-1753-fix-ret…
…urn-code-from-ct_run to develop # By Jakub Kudzia # Via Jakub Kudzia * commit '673f5fad04d12da2441217737e5eda906c96266c': VFS-1753 move functions checking is tests were skipped to separate modules VFS-1753 fix problems with xml report name VFS-1753 checking if tests were skipped in test_run.py VFS-1753 return code 0 from tests if test weren't skipped
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
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
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
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,21 @@ | ||
"""Author: Jakub Kudzia | ||
Copyright (C) 2015 ACK CYFRONET AGH | ||
This software is released under the MIT license cited in 'LICENSE.txt' | ||
This module contains util functions used in ct_run.py and test_run.py | ||
""" | ||
|
||
import glob | ||
import xml.etree.ElementTree as ElementTree | ||
|
||
|
||
def skipped_test_exists(junit_report_path): | ||
reports = glob.glob(junit_report_path) | ||
# if there are many reports, check only the last one | ||
reports.sort() | ||
tree = ElementTree.parse(reports[-1]) | ||
testsuites = tree.getroot() | ||
for testsuite in testsuites: | ||
if testsuite.attrib['skipped'] != '0': | ||
return True | ||
return False |