diff --git a/testground/README.md b/testground/README.md index 40018edbb1..c24d9e54da 100644 --- a/testground/README.md +++ b/testground/README.md @@ -46,7 +46,7 @@ $ TESTGROUND_HOME=$PWD/data testground plan import --from /path/to/cronos/testgr Run the benchmark test plan in local docker environment: ```bash -$ testground run composition -f /path/to/cronos/testground/benchmark/compositions/local.toml --wait +$ TESTGROUND_HOME=$PWD/data testground run composition -f /path/to/cronos/testground/benchmark/compositions/local.toml --wait ``` ### macOS diff --git a/testground/benchmark/benchmark/network.py b/testground/benchmark/benchmark/network.py index e92ef6e5d0..c0b925c490 100644 --- a/testground/benchmark/benchmark/network.py +++ b/testground/benchmark/benchmark/network.py @@ -21,6 +21,6 @@ def get_data_ip(params: RunParams) -> ipaddress.IPv4Address: def ip4_addresses() -> List[ipaddress.IPv4Address]: ip_list = [] for interface in netifaces.interfaces(): - for link in netifaces.ifaddresses(interface)[netifaces.AF_INET]: + for link in netifaces.ifaddresses(interface).get(netifaces.AF_INET, []): ip_list.append(ipaddress.IPv4Address(link["addr"])) return ip_list