Whamcloud - gitweb
LU-8832 tests: Generalize check of virtual machine 74/23774/4
authorJames Nunez <james.a.nunez@intel.com>
Tue, 15 Nov 2016 21:05:49 +0000 (14:05 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 17 Dec 2016 05:38:30 +0000 (05:38 +0000)
The patch for LU-8248, commit 39582273a7a52fb, we added a
function, called running_in_vm(), to check if the test is
being run in a VM and, if so, ignore the performance
results. The check for running in a VM needs to be updated
to run correctly in a SLES environment.

Test-Parameters: trivial clientdistro=sles11sp4 mdsdistro=sles11sp4 ossdistro=sles11sp4 testlist=sanity
Signed-off-by: James Nunez <james.a.nunez@intel.com>
Change-Id: Iebca20c6be81da7fef18e7d486cb59e3f3877eaa
Reviewed-on: https://review.whamcloud.com/23774
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
lustre/tests/test-framework.sh

index 1a13b48..f3eb748 100755 (executable)
@@ -1000,7 +1000,8 @@ running_in_vm() {
        virt=$(dmidecode -s system-product-name | awk '{print $1}')
 
        case $virt in
-               VMware|KVM|VirtualBox|Parallels) echo ${virt,,} ;;
+               VMware|KVM|VirtualBox|Parallels)
+                       echo $virt | tr '[A-Z]' '[a-z]' ;;
                *) ;;
        esac
 }