Lines Matching refs:old_img

28 old_img = os.path.join(iotests.test_dir, 'test0.img')  variable
131 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
144 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
177 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
209 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
269 qemu_img('create', '-f', iotests.imgfmt, old_img, '1440k')
273 self.vm.add_drive(old_img, 'media=%s' % self.media, 'none')
278 'file.filename=%s' % old_img ])
289 os.remove(old_img)
360 qemu_img('create', '-f', iotests.imgfmt, old_img, '1440k')
366 os.chmod(old_img, 0o666)
368 os.remove(old_img)
372 os.chmod(old_img, 0o444)
374 self.vm.add_drive(old_img, 'media=disk,read-only=on', 'none')
380 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
392 os.chmod(old_img, 0o444)
393 self.vm.add_drive(old_img, 'media=disk,read-only=on', 'none')
399 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
413 self.vm.add_drive(old_img, 'media=disk', 'none')
419 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
431 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
434 os.chmod(old_img, 0o444)
435 self.vm.add_drive(old_img, 'media=disk,read-only=on', 'none')
441 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
455 self.vm.add_drive(old_img, 'media=disk', 'none')
461 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
474 self.vm.add_drive(old_img, 'media=disk', 'none')
480 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
495 self.vm.add_drive(old_img, 'media=disk', 'none')
501 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
512 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
515 os.chmod(old_img, 0o444)
516 self.vm.add_drive(old_img, 'media=disk,read-only=on', 'none')
522 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
536 self.vm.add_drive(old_img, 'media=disk', 'none')
542 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
552 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
556 self.vm.add_drive(old_img, 'media=disk', 'none')
562 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
573 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
600 qemu_img('create', '-f', iotests.imgfmt, old_img, '1440K')
620 file={'filename': old_img,
627 self.assert_qmp(result, 'return[0]/inserted/image/filename', old_img)
631 os.remove(old_img)
649 old_img)