[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-bank] 09/10: using logger in test launchers
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-bank] 09/10: using logger in test launchers |
Date: |
Wed, 12 Jul 2017 12:55:45 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository bank.
commit 7293a1870c4d45a9a94a759cf51d45c7a4a334a8
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Jul 12 10:02:46 2017 +0200
using logger in test launchers
---
run_tests.py | 5 ++++-
run_tests_err.py | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/run_tests.py b/run_tests.py
index 1fd4485..5b61934 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -4,10 +4,13 @@ from django.core.management import call_command
from django.db.utils import OperationalError
import django
import sys
+import logging
django.setup()
+logger = logging.getLogger(__name__)
+
try:
call_command("test", "talerbank.app.tests")
except OperationalError:
- print("Catching DB hard error, skipping the test")
+ logger.error("Catching DB hard error, skipping the test")
sys.exit(0)
diff --git a/run_tests_err.py b/run_tests_err.py
index c01d03f..f6d44c6 100755
--- a/run_tests_err.py
+++ b/run_tests_err.py
@@ -4,10 +4,13 @@ from django.core.management import call_command
from django.db.utils import OperationalError
import django
import sys
+import logging
django.setup()
+logger = logging.getLogger(__name__)
+
try:
call_command("test", "talerbank.app.tests_err")
except OperationalError:
- print("Catching DB hard error, skipping the test")
+ logger.error("Catching DB hard error, skipping the test")
sys.exit(0)
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-bank] branch master updated (82128e4 -> e9bb1a6), gnunet, 2017/07/12
- [GNUnet-SVN] [taler-bank] 05/10: add testcase wrapper for faulty testcases, gnunet, 2017/07/12
- [GNUnet-SVN] [taler-bank] 02/10: only enabling faulty tests, faster testing., gnunet, 2017/07/12
- [GNUnet-SVN] [taler-bank] 06/10: running a test against a non existent config file., gnunet, 2017/07/12
- [GNUnet-SVN] [taler-bank] 08/10: No #-line within make rule, gnunet, 2017/07/12
- [GNUnet-SVN] [taler-bank] 07/10: comment, gnunet, 2017/07/12
- [GNUnet-SVN] [taler-bank] 09/10: using logger in test launchers,
gnunet <=
- [GNUnet-SVN] [taler-bank] 01/10: re-enabling faulty tests, gnunet, 2017/07/12
- [GNUnet-SVN] [taler-bank] 03/10: fix logging, gnunet, 2017/07/12
- [GNUnet-SVN] [taler-bank] 04/10: config parser catches exception for config file not found, gnunet, 2017/07/12
- [GNUnet-SVN] [taler-bank] 10/10: Unifying all tests in one file., gnunet, 2017/07/12