diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-05-23 11:46:04 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-05-23 12:07:19 +0200 |
commit | a431adf8676ea377175b91776082eb37d4773e80 (patch) | |
tree | 39a1e59371495ebe05c106b24fc1c36bff40069f /smoketest | |
parent | 5bd9041a10e8bc69436144705089ced63499e6f9 (diff) | |
download | vyos-1x-a431adf8676ea377175b91776082eb37d4773e80.tar.gz vyos-1x-a431adf8676ea377175b91776082eb37d4773e80.zip |
smoketest: ethernet: bugfix RPS CPU validation
We always read back the RPS value from eth1 which worked on the CI smoketests,
but not when running a smoketest with only one interface e.g. by:
$ TEST_ETH="eth2" /usr/libexec/vyos/tests/smoke/cli/test_interfaces_ethernet.py
Diffstat (limited to 'smoketest')
-rwxr-xr-x | smoketest/scripts/cli/test_interfaces_ethernet.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_ethernet.py b/smoketest/scripts/cli/test_interfaces_ethernet.py index cb0c8a426..a31d75423 100755 --- a/smoketest/scripts/cli/test_interfaces_ethernet.py +++ b/smoketest/scripts/cli/test_interfaces_ethernet.py @@ -118,7 +118,7 @@ class EthernetInterfaceTest(BasicInterfaceTest.TestCase): self.cli_commit() for interface in self._interfaces: - cpus = read_file('/sys/class/net/eth1/queues/rx-0/rps_cpus') + cpus = read_file(f'/sys/class/net/{interface}/queues/rx-0/rps_cpus') # remove the nasty ',' separation on larger strings cpus = cpus.replace(',','') cpus = int(cpus, 16) |