122
123
target, "var/log/unattended-upgrades/unattended-upgrades.log")
123
124
logfile = open(log).read()
125
128
self.assertFalse("ERROR Installing the upgrades failed" in logfile)
127
129
dpkg_log = os.path.join(target, "var/log/unattended-upgrades/*-dpkg*.log")
128
130
dpkg_logfile = open(glob.glob(dpkg_log)[0]).read()
129
131
self.assertTrue("Preparing to replace bzip2 1.0.5-4" in dpkg_logfile)