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:09:06 +0200 |
commit | f1e05de0092e36926429b25a4fe98c55f41c790a (patch) | |
tree | 7dae5b5b141475468df340aafd9704b8ef797923 /smoketest/scripts/cli | |
parent | 39f3d3e33a7b33361c1c0b8bda2b75d8f320df35 (diff) | |
download | vyos-1x-f1e05de0092e36926429b25a4fe98c55f41c790a.tar.gz vyos-1x-f1e05de0092e36926429b25a4fe98c55f41c790a.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
(cherry picked from commit a431adf8676ea377175b91776082eb37d4773e80)
Diffstat (limited to 'smoketest/scripts/cli')
-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 772ff248f..bbc5478dc 100755 --- a/smoketest/scripts/cli/test_interfaces_ethernet.py +++ b/smoketest/scripts/cli/test_interfaces_ethernet.py @@ -116,7 +116,7 @@ class EthernetInterfaceTest(BasicInterfaceTest.BaseTest): self.session.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) |