5012fd52fb0e4633a7ef39c2eb32017388c7eb37,perfkitbenchmarker/linux_packages/iperf.py,,YumInstall,#Any#,33
Before Change
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
elif major_version == 7:
iperf_rpm = IPERF_EL7_RPM
else:
raise e
vm.RemoteCommand("sudo rpm -ivh %s" % iperf_rpm)
def AptInstall(vm):
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" % (
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 5012fd52fb0e4633a7ef39c2eb32017388c7eb37
Time: 2019-07-15
Author: yuyanting@google.com
File Name: perfkitbenchmarker/linux_packages/iperf.py
Class Name:
Method Name: YumInstall
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 6610f60eb150f55002dcb22159e0b9aa9d1b23fa
Time: 2020-11-17
Author: tohaowu@google.com
File Name: perfkitbenchmarker/linux_packages/hpcg.py
Class Name:
Method Name: AptInstall
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 2e2c6cc8a6c9c51fdcee445dcc479ac3b981f8e5
Time: 2020-04-03
Author: p3rf@google.com
File Name: perfkitbenchmarker/linux_packages/cuda_toolkit.py
Class Name:
Method Name: AptInstall