Tests basic utility methods of ConfigFile class ... ok
======================================================================
FAIL: When root device is readonly, emit a warning and return False.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/run/cloud-init/tmp/tmp72gfz6zt/cloud-init-0.7.9-273-gf761f2b5/tests/unittests/test_handler/test_handler_resizefs.py", line 251, in test_is_device_path_writable_block_readonly
logs)
AssertionError: "WARNING: '/tmp/ci-TestIsDevicePathWritableBlock.ncpqhp4l/dev/readonly' not writable. cannot resize" not found in "DEBUG: Writing to /tmp/ci-TestIsDevicePathWritableBlock.ncpqhp4l/dev/readonly - wb: [400] 0 bytes\nDEBUG: Reading from /proc/cmdline (quiet=False)\nDEBUG: Read 130 bytes from /proc/cmdline\nDEBUG: Converted /dev/root to '/tmp/ci-TestIsDevicePathWritableBlock.ncpqhp4l/dev/readonly' per kernel cmdline\nWARNING: device '/tmp/ci-TestIsDevicePathWritableBlock.ncpqhp4l/dev/readonly' not a block device. cannot resize: dev=/dev/root mnt_point=/ path=/tmp/ci-TestIsDevicePathWritableBlock.ncpqhp4l/dev/readonly\n"
======================================================================
FAIL: When root device is readonly, emit debug log and return False.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/run/cloud-init/tmp/tmp72gfz6zt/cloud-init-0.7.9-273-gf761f2b5/tests/unittests/test_handler/test_handler_resizefs.py", line 267, in test_is_device_path_writable_block_readonly_in_container
self.logs.getvalue())
AssertionError: "DEBUG: '/tmp/ci-TestIsDevicePathWritableBlock.26c6qkkb/dev/readonly' not writable in container. cannot resize" not found in "DEBUG: Writing to /tmp/ci-TestIsDevicePathWritableBlock.26c6qkkb/dev/readonly - wb: [400] 0 bytes\nDEBUG: device '/tmp/ci-TestIsDevicePathWritableBlock.26c6qkkb/dev/readonly' not a block device in container. cannot resize: dev=/dev/root mnt_point=/ path=/tmp/ci-TestIsDevicePathWritableBlock.26c6qkkb/dev/readonly\n"
----------------------------------------------------------------------
Ran 1077 tests in 5.446s
FAILED (SKIP=6, failures=2)
Makefile:54: recipe for target 'unittest3' failed
make[2]: *** [unittest3] Error 1
make[2]: Leaving directory '/run/cloud-init/tmp/tmp72gfz6zt/cloud-init-0.7.9-273-gf761f2b5'
debian/rules:18: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 2
make[1]: Leaving directory '/run/cloud-init/tmp/tmp72gfz6zt/cloud-init-0.7.9-273-gf761f2b5'
debian/rules:7: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Stderr: debuild: fatal error at line 1376:
dpkg-buildpackage -rfakeroot -D -us -uc failed