Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSushmita Poudel <66173400+sushmita56@users.noreply.github.com>2022-05-09 13:49:22 +0300
committerGitHub <noreply@github.com>2022-05-09 13:49:22 +0300
commit537d3c01e402ec530477741f98b87c17ba6063a8 (patch)
treed9212e89124b683da0296d8361592195f58bf457 /test
parent479ff7c1dc08430976a5f0bccb222888eefbc3fe (diff)
Stracktrace done after application gets closed (#9610)
* changed notification channel * fixing nighlty build problem
Diffstat (limited to 'test')
-rw-r--r--test/gui/shared/scripts/bdd_hooks.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/gui/shared/scripts/bdd_hooks.py b/test/gui/shared/scripts/bdd_hooks.py
index bb4899ffc..bfb1f21b8 100644
--- a/test/gui/shared/scripts/bdd_hooks.py
+++ b/test/gui/shared/scripts/bdd_hooks.py
@@ -63,7 +63,7 @@ def hook(context):
if value == '':
context.userData[key] = cfg.get('DEFAULT', CONFIG_ENV_MAP[key])
except Exception as err:
- print(err)
+ test.log(str(err))
# Set the default values if empty
for key, value in context.userData.items():
@@ -101,18 +101,6 @@ def hook(context):
@OnScenarioEnd
def hook(context):
- # search coredumps after every test scenario
- # CI pipeline might fail although all tests are passing
- coredumps = getCoredumps()
- if coredumps:
- try:
- generateStacktrace(context, coredumps)
- print("Stacktrace generated.")
- except Exception as err:
- print(err)
- else:
- print("No coredump found!")
-
# capture screenshot if there is error in the scenario execution, and if the test is being run in CI
if test.resultCount("errors") > 0 and os.getenv('CI'):
import gi
@@ -147,7 +135,19 @@ def hook(context):
elif os.path.isdir(file_path):
shutil.rmtree(file_path)
except Exception as e:
- print('Failed to delete %s. Reason: %s' % (file_path, e))
+ test.log('Failed to delete' + file_path + ". Reason: " + e + '.')
+
+ # search coredumps after every test scenario
+ # CI pipeline might fail although all tests are passing
+ coredumps = getCoredumps()
+ if coredumps:
+ try:
+ generateStacktrace(context, coredumps)
+ test.log("Stacktrace generated!")
+ except Exception as err:
+ test.log("Exception occured:" + err)
+ else:
+ test.log("No coredump found!")
# cleanup test server
req = urllib.request.Request(