On Fri, Mar 29, 2013 at 7:06 AM, Mike Qiu <[email protected]>wrote:
> From: Mike Qiu <[email protected]> > > To support different hardware platform, add the API of > get_hardware_platform() to get the exactly platform the autotest > runs on. > > This API is not needed at all, since we have the stdlib platform module. platform.machine() does exactly the same as this. Therefore, I'm dropping it and I'll re-spin your patches. Thanks, Lucas > Signed-off-by: Mike Qiu<[email protected]> > --- > virttest/utils_misc.py | 9 +++++++++ > 1 files changed, 9 insertions(+), 0 deletions(-) > > diff --git a/virttest/utils_misc.py b/virttest/utils_misc.py > index 2eba264..fa6e4a3 100644 > --- a/virttest/utils_misc.py > +++ b/virttest/utils_misc.py > @@ -552,6 +552,15 @@ def kvm_flags_to_stresstests(flags): > return param > > > +def get_hardware_platform(): > + """ > + Retunrs the hardware_platform like: > + x86_64, i386, ppc64, etc. > + """ > + platform = utils.system_output('uname -i').strip() > + return platform > + > + > def get_cpu_flags(): > """ > Returns a list of the CPU flags > -- > 1.7.7.6 > > -- Lucas
_______________________________________________ Virt-test-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/virt-test-devel
