INFO:root:Workspace dir: /var/lib/jenkins/workspace/charm_unit_test
INFO:root:Reading file: Makefile
INFO:root:Searching for: ['nosetest', 'unit.test']
INFO:root:command: make -f Makefile test
Starting unit tests...
.venv/bin/nosetests -s --nologcapture --with-coverage unit_tests/
test_am_i_primary (mongodb.unit_tests.test_hooks.MongoHooksTest) ... ok
test_am_i_primary_operation_failures (mongodb.unit_tests.test_hooks.MongoHooksTest) ... ok
test_am_i_primary_too_many_attempts (mongodb.unit_tests.test_hooks.MongoHooksTest) ... ok
test_init_repl_set (mongodb.unit_tests.test_hooks.MongoHooksTest) ... ok
test_install_hook (mongodb.unit_tests.test_hooks.MongoHooksTest) ... ok
test_join_replset (mongodb.unit_tests.test_hooks.MongoHooksTest) ... ok
test_leave_replset (mongodb.unit_tests.test_hooks.MongoHooksTest) ... ok
test_mongo_client (mongodb.unit_tests.test_hooks.MongoHooksTest) ... ok
test_mongo_client_smart_error_cases (mongodb.unit_tests.test_hooks.MongoHooksTest) ... ok
test_mongo_client_smart_no_command (mongodb.unit_tests.test_hooks.MongoHooksTest) ... ok
test_replica_set_relation_changed (mongodb.unit_tests.test_hooks.MongoHooksTest) ... ok
test_replica_set_relation_departed (mongodb.unit_tests.test_hooks.MongoHooksTest) ... ok
test_replica_set_relation_joined (mongodb.unit_tests.test_hooks.MongoHooksTest) ... ok
test_success (mongodb.unit_tests.test_write_log_rotate_config.TestWriteLogrotateConfigFile) ... ok
Name Stmts Miss Cover Missing
----------------------------------------
hooks.py 966 714 26% 19-24, 74-75, 77-83, 87-89, 137-156, 163-173, 177-185, 189-201, 205-219, 223-227, 242-404, 484-487, 505, 536-566, 570-581, 585-599, 603-618, 622-639, 643-650, 654-672, 676, 680-696, 701-742, 746-765, 769, 773-788, 793-826, 830-834, 838-858, 865-903, 914-922, 937, 945-1082, 1087-1090, 1095-1105, 1110-1125, 1229-1234, 1248-1264, 1269-1271, 1277-1283, 1288-1289, 1294-1298, 1308-1311, 1317-1321, 1332-1373, 1378-1385, 1392-1413, 1418-1427, 1439-1450, 1457-1459, 1467-1469, 1479-1487, 1495-1519, 1525-1529, 1533-1537, 1551-1634, 1657-1659, 1668
----------------------------------------------------------------------
Ran 14 tests in 1.374s
OK
.venv/bin/nosetests -s --nologcapture --with-coverage actions/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Failure: CalledProcessError (Command '['apt-get', 'install', '-y', 'python-pip']' returned non-zero exit status 100) ... ERROR
======================================================================
ERROR: Failure: CalledProcessError (Command '['apt-get', 'install', '-y', 'python-pip']' returned non-zero exit status 100)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/lib/jenkins/checkout/mongodb/.venv/local/lib/python2.7/site-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/var/lib/jenkins/checkout/mongodb/.venv/local/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/var/lib/jenkins/checkout/mongodb/.venv/local/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/var/lib/jenkins/checkout/mongodb/actions/backup_test.py", line 3, in <module>
import backup
File "/var/lib/jenkins/checkout/mongodb/actions/backup.py", line 7, in <module>
subprocess.check_call(['apt-get', 'install', '-y', 'python-pip'])
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['apt-get', 'install', '-y', 'python-pip']' returned non-zero exit status 100
Name Stmts Miss Cover Missing
-----------------------------------------------------------------------------------
hooks/charmhelpers/__init__.py 16 16 0% 19-38
hooks/charmhelpers/contrib/__init__.py 0 0 100%
hooks/charmhelpers/contrib/charmsupport/__init__.py 0 0 100%
hooks/charmhelpers/contrib/charmsupport/nrpe.py 130 130 0% 17-357
hooks/charmhelpers/contrib/charmsupport/volumes.py 75 75 0% 17-175
hooks/charmhelpers/contrib/hahelpers/__init__.py 0 0 100%
hooks/charmhelpers/contrib/hahelpers/cluster.py 143 143 0% 25-316
hooks/charmhelpers/contrib/python/__init__.py 0 0 100%
hooks/charmhelpers/contrib/python/packages.py 61 61 0% 20-121
hooks/charmhelpers/core/__init__.py 0 0 100%
hooks/charmhelpers/core/decorators.py 21 21 0% 24-57
hooks/charmhelpers/core/files.py 6 6 0% 20-43
hooks/charmhelpers/core/fstab.py 73 73 0% 20-132
hooks/charmhelpers/core/hookenv.py 478 478 0% 17-930
hooks/charmhelpers/core/host.py 326 326 0% 17-586
hooks/charmhelpers/core/hugepage.py 26 26 0% 19-69
hooks/charmhelpers/core/kernel.py 26 26 0% 20-68
hooks/charmhelpers/core/services/__init__.py 2 2 0% 17-18
hooks/charmhelpers/core/services/base.py 130 130 0% 17-353
hooks/charmhelpers/core/services/helpers.py 116 116 0% 17-283
hooks/charmhelpers/core/strutils.py 25 25 0% 20-72
hooks/charmhelpers/core/sysctl.py 15 15 0% 20-56
hooks/charmhelpers/core/templating.py 26 26 0% 17-68
hooks/charmhelpers/core/unitdata.py 174 174 0% 24-521
hooks/charmhelpers/fetch/__init__.py 188 188 0% 17-456
hooks/charmhelpers/fetch/archiveurl.py 83 83 0% 17-167
hooks/charmhelpers/fetch/bzrurl.py 49 49 0% 17-78
hooks/charmhelpers/fetch/giturl.py 40 40 0% 17-73
hooks/charmhelpers/payload/__init__.py 1 1 0% 17
hooks/charmhelpers/payload/execd.py 30 30 0% 19-66
hooks/hooks.py 966 966 0% 2-1668
-----------------------------------------------------------------------------------
TOTAL 3226 3226 0%
----------------------------------------------------------------------
Ran 1 test in 0.035s
FAILED (errors=1)
make: *** [test] Error 1
ERROR:root:Make target returned non-zero.