On Mon, 2015-02-09 at 11:09 +, 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
Signed-off-by: Wei Liu
Cc: Ian Campbell
Cc: Ian Jackson
---
Osstest/Toolstack/libvirt.pm | 9 +
Osstest/Toolstack/xend.pm| 3 +++
Osstest/Toolstack/xl.pm | 9 +
3 files changed, 21 insertions(+)
diff --git a/Osstest/Toolstack/libvirt.pm b/Osstest/Toolstack/libvirt.pm
i