From patchwork Wed Oct 27 09:37:30 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Goldish X-Patchwork-Id: 285272 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9R9btpr019614 for ; Wed, 27 Oct 2010 09:37:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755318Ab0J0Jhm (ORCPT ); Wed, 27 Oct 2010 05:37:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55866 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755165Ab0J0Jhi (ORCPT ); Wed, 27 Oct 2010 05:37:38 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9R9bbmr003078 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 27 Oct 2010 05:37:37 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id o9R9bbHJ020120; Wed, 27 Oct 2010 05:37:37 -0400 Received: from localhost.localdomain (dhcp-1-188.tlv.redhat.com [10.35.1.188]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o9R9bUrI001498; Wed, 27 Oct 2010 05:37:36 -0400 From: Michael Goldish To: autotest@test.kernel.org, kvm@vger.kernel.org Cc: Michael Goldish Subject: [KVM-AUTOTEST PATCH] KVM test: kvm_subprocess: add aliases for cmd_* functions for backward compatibility Date: Wed, 27 Oct 2010 11:37:30 +0200 Message-Id: <1288172250-4304-3-git-send-email-mgoldish@redhat.com> In-Reply-To: <1288172250-4304-2-git-send-email-mgoldish@redhat.com> References: <1288172250-4304-1-git-send-email-mgoldish@redhat.com> <1288172250-4304-2-git-send-email-mgoldish@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 27 Oct 2010 09:37:56 +0000 (UTC) diff --git a/client/tests/kvm/kvm_subprocess.py b/client/tests/kvm/kvm_subprocess.py index e0723bb..a60eaf6 100755 --- a/client/tests/kvm/kvm_subprocess.py +++ b/client/tests/kvm/kvm_subprocess.py @@ -1323,3 +1323,28 @@ class ShellSession(Expect): if s != 0: raise ShellCmdError(cmd, s, o) return o + + + def get_command_output(self, cmd, timeout=30.0, internal_timeout=None, + print_func=None): + """ + Alias for cmd_output() for backward compatibility. + """ + return self.cmd_output(cmd, timeout, internal_timeout, print_func) + + + def get_command_status_output(self, cmd, timeout=30.0, + internal_timeout=None, print_func=None): + """ + Alias for cmd_status_output() for backward compatibility. + """ + return self.cmd_status_output(cmd, timeout, internal_timeout, + print_func) + + + def get_command_status(self, cmd, timeout=30.0, internal_timeout=None, + print_func=None): + """ + Alias for cmd_status() for backward compatibility. + """ + return self.cmd_status(cmd, timeout, internal_timeout, print_func)