def __call__(self, location: Location, system_context: SystemContext, *args: typing.Any, **kwargs: typing.Any) -> None: """Execute command.""" self._run_hooks(system_context, '_teardown') self._run_hooks(system_context, 'testing') system_context.pickle() self._execute(location, system_context, '_store') debug('Cleaning up everything in "{}".'.format( system_context.scratch_directory)) self._service('btrfs_helper').delete_subvolume_recursive( system_context.scratch_directory)
def __call__( self, location: Location, system_context: SystemContext, *args: typing.Any, **kwargs: typing.Any, ) -> None: """Execute command.""" self._run_hooks(system_context, "_teardown") self._run_hooks(system_context, "testing") system_context.pickle() self._execute(location, system_context, "_store") debug(f'Cleaning up everything in "{system_context.scratch_directory}".') self._service("btrfs_helper").delete_subvolume_recursive( system_context.scratch_directory )