mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-21 17:05:39 +03:00
If a FileNotFound exception occurs, log a simple message indicating the tests may
have not run.
This commit is contained in:
parent
f12afe0ef0
commit
314f32ed45
1 changed files with 29 additions and 26 deletions
|
@ -13,6 +13,7 @@ print("::group::Arguments")
|
||||||
print(f"{sys.argv}")
|
print(f"{sys.argv}")
|
||||||
print("::endgroup::")
|
print("::endgroup::")
|
||||||
for xmlfile in xmlfiles:
|
for xmlfile in xmlfiles:
|
||||||
|
try:
|
||||||
tree = ET.parse(xmlfile)
|
tree = ET.parse(xmlfile)
|
||||||
|
|
||||||
root = tree.getroot()
|
root = tree.getroot()
|
||||||
|
@ -40,5 +41,7 @@ for xmlfile in xmlfiles:
|
||||||
print(child.text)
|
print(child.text)
|
||||||
body = f" passed={success} failures={failures} errors={errors} skipped={skipped}"
|
body = f" passed={success} failures={failures} errors={errors} skipped={skipped}"
|
||||||
print(f"::set-output name={suitename}::={body}")
|
print(f"::set-output name={suitename}::={body}")
|
||||||
|
except FileNotFoundError:
|
||||||
|
print(f"::error::Unable to open test results file {xmlfile} - check if the tests completed")
|
||||||
print("::endgroup::")
|
print("::endgroup::")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue