added info about skipped tests to the summary for the 'test' target

This commit is contained in:
Matthew Wall
2019-01-22 23:26:13 -05:00
parent 1e9b0a0c1c
commit e9ebf331ec
2 changed files with 6 additions and 3 deletions

View File

@@ -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:

View File

@@ -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