Merge "Remove blacklist test volume"

This commit is contained in:
Jenkins 2016-11-03 21:17:40 +00:00 committed by Gerrit Code Review
commit 1b2f42dc3d
2 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,3 @@
# Use a blacklist of tests known to fail on Python 3, until
# all unit tests will pass on Python 3.
guestagent.test_operating_system
guestagent.test_volume

View File

@ -205,7 +205,7 @@ class VolumeMountPoint(object):
LOG.debug("Writing new line to fstab:%s" % fstab_line)
with open('/etc/fstab', "r") as fstab:
fstab_content = fstab.read()
with NamedTemporaryFile(delete=False) as tempfstab:
with NamedTemporaryFile(mode='w', delete=False) as tempfstab:
tempfstab.write(fstab_content + fstab_line)
utils.execute("sudo", "install", "-o", "root", "-g", "root", "-m",
"644", tempfstab.name, "/etc/fstab")