_Install(vm)
// RHEL 7 does not have an iperf package in the standard/EPEL repositories
except errors.VirtualMachine.RemoteCommandError as e:
stdout, _ = vm.RemoteCommand("cat /etc/redhat-release")
major_version = int(re.search("release ([0-9])", stdout).group(1))
if major_version == 6:
iperf_rpm = IPERF_EL6_RPM
After Change
// RHEL 7 does not have an iperf package in the standard/EPEL repositories
except errors.VirtualMachine.RemoteCommandError:
vm.Install("build_tools")
vm.Install("unzip")
vm.InstallPreprovisionedPackageData(
PACKAGE_NAME, PREPROVISIONED_DATA.keys(), INSTALL_DIR)
vm.RemoteCommand(
"cd %s; unzip %s; cd %s; ./configure; make; sudo make install" % (