def testDeleteNoChroot(self): """Test no chroot provided.""" sdk.Delete() # cros_sdk --delete. self.assertCommandContains(['--delete']) # No chroot specified for cros_sdk --delete. self.assertCommandContains(['--chroot'], expected=False)
def testDeleteNoChroot(self): """Test no chroot provided.""" sdk.Delete() # cros clean sysroots command. self.assertCommandContains(['clean', '--sysroots']) # cros_sdk --delete. self.assertCommandContains(['--delete']) # Double whammy: no chroot specified for cros_sdk --delete, and no # cros clean --chroot. self.assertCommandContains(['--chroot'], expected=False)
def Delete(input_proto, _output_proto, _config): """Delete a chroot.""" chroot = controller_util.ParseChroot(input_proto.chroot) sdk.Delete(chroot)
def testDeleteWithChroot(self): """Test with chroot provided.""" path = '/some/path' sdk.Delete(chroot=chroot_lib.Chroot(path)) self.assertCommandContains(['--delete', '--chroot', path])
def testDeleteWithChrootAndForce(self): """Test with chroot and force provided.""" path = '/some/path' sdk.Delete(chroot=chroot_lib.Chroot(path), force=True) self.assertCommandContains(['--delete', '--force', '--chroot', path])