summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_interfaces_ethernet.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-23 11:46:04 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-23 12:07:19 +0200
commita431adf8676ea377175b91776082eb37d4773e80 (patch)
tree39a1e59371495ebe05c106b24fc1c36bff40069f /smoketest/scripts/cli/test_interfaces_ethernet.py
parent5bd9041a10e8bc69436144705089ced63499e6f9 (diff)
downloadvyos-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/scripts/cli/test_interfaces_ethernet.py')
-rwxr-xr-xsmoketest/scripts/cli/test_interfaces_ethernet.py2
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)