mirror of
https://github.com/weewx/weewx.git
synced 2026-04-18 08:36:54 -04:00
added info about skipped tests to the summary for the 'test' target
This commit is contained in:
@@ -5,8 +5,6 @@ import stat
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import MySQLdb
|
||||
|
||||
import weedb
|
||||
|
||||
#
|
||||
@@ -51,6 +49,10 @@ class Common(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
"""Drop the old databases, in preparation for running a test."""
|
||||
try:
|
||||
import MySQLdb
|
||||
except ImportError as e:
|
||||
raise unittest.case.SkipTest(e.message)
|
||||
try:
|
||||
weedb.drop(mysql1_dict)
|
||||
except weedb.NoDatabase:
|
||||
|
||||
3
makefile
3
makefile
@@ -89,7 +89,8 @@ test:
|
||||
echo >> $(BLDDIR)/test-results; \
|
||||
done
|
||||
@grep "ERROR:\|FAIL:" $(BLDDIR)/test-results || echo "no failures"
|
||||
@echo "see $(BLDDIR)/test-results"
|
||||
@grep "skipped=" $(BLDDIR)/test-results || echo "no tests were skipped"
|
||||
@echo "see $(BLDDIR)/test-results for output from the tests"
|
||||
|
||||
test-setup:
|
||||
bin/weedb/test/setup_mysql
|
||||
|
||||
Reference in New Issue
Block a user