[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH OSSTEST 01/12] toolstack: save / restore check
On Mon, 2015-02-09 at 11:09 +0000, Wei Liu wrote: > +sub saverestore_check ($) { > + my ($self) = @_; > + my $ho = $self->{Host}; > + my $help = target_cmd_output_root($ho, $self->{_Command}." help"); > + my $rc = ($help =~ m/^\s*save/m) ? 0 : 1; > + logm("rc=$rc"); > + return $rc; You could refactor this and the migration_check into a more generic "check for a named command" helper. And you could prepare the libvirt one for the same once migration gets added I suppose. Everything else looks OK to me. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |