[V2,2/2] tests/*: Remove old DPDK flags from power tests
Checks
Context |
Check |
Description |
ci/Intel-dts-doc-test |
success
|
Testing OK
|
ci/Intel-dts-suite-test |
warning
|
SKIPPED
|
Commit Message
* CONFIG_RTE_LIBRTE_I40E_PMD, CONFIG_RTE_LIBRTE_POWER + _CONFIG option do not exist anymore
* Telemetry is built by default + _LIBRTE_ option also does not exist anymore
Signed-off-by: Tadhg Kearney <tadhg.kearney@intel.com>
---
tests/TestSuite_power_branch_ratio.py | 30 +--------------------------
tests/TestSuite_power_telemetry.py | 10 +--------
2 files changed, 2 insertions(+), 38 deletions(-)
@@ -45,7 +45,7 @@ from framework.exception import VerifyFailure
from framework.packet import Packet
from framework.pktgen import TRANSMIT_CONT
from framework.qemu_libvirt import LibvirtKvm
-from framework.settings import HEADER_SIZE, HOST_BUILD_TYPE_SETTING, load_global_setting
+from framework.settings import HEADER_SIZE
from framework.test_case import TestCase
from framework.utils import create_mask as dts_create_mask
@@ -227,24 +227,7 @@ class TestPowerBranchRatio(TestCase):
return result
- @property
- def compile_switch(self):
- sw_table = [
- "CONFIG_RTE_LIBRTE_POWER",
- "CONFIG_RTE_LIBRTE_POWER_DEBUG",
- ]
- return sw_table
-
def preset_compilation(self):
- if "meson" == load_global_setting(HOST_BUILD_TYPE_SETTING):
- compile_SWs = self.compile_switch + ["CONFIG_RTE_LIBRTE_I40E_PMD"]
- self.dut.set_build_options(dict([(sw[7:], "y") for sw in compile_SWs]))
- else:
- for sw in self.compile_switch:
- cmd = (
- "sed -i -e " "'s/{0}=n$/{0}=y/' " "{1}/config/common_base"
- ).format(sw, self.target_dir)
- self.d_a_con(cmd)
# re-compile dpdk source code
self.dut.build_install_dpdk(self.target)
@@ -258,17 +241,6 @@ class TestPowerBranchRatio(TestCase):
self.restore_port_drv()
except Exception as e:
self.logger.error(traceback.format_exc())
- # restore compilation
- if "meson" == load_global_setting(HOST_BUILD_TYPE_SETTING):
- self.dut.set_build_options(
- dict([(sw[7:], "n") for sw in self.compile_switch])
- )
- else:
- for sw in self.compile_switch:
- cmd = (
- "sed -i -e " "'s/{0}=y$/{0}=n/' " "{1}/config/common_base"
- ).format(sw, self.target_dir)
- self.d_a_con(cmd)
# re-compile dpdk source code
self.dut.build_install_dpdk(self.target)
@@ -45,7 +45,7 @@ from pprint import pformat
from framework.exception import VerifyFailure
from framework.packet import Packet
from framework.pktgen import TRANSMIT_CONT
-from framework.settings import HEADER_SIZE, HOST_BUILD_TYPE_SETTING, load_global_setting
+from framework.settings import HEADER_SIZE
from framework.test_case import TestCase
from framework.utils import create_mask as dts_create_mask
@@ -128,14 +128,6 @@ class TestPowerTelemetry(TestCase):
def preset_compilation(self):
if self.dut.skip_setup:
return
- SW = "CONFIG_RTE_LIBRTE_TELEMETRY"
- if "meson" == load_global_setting(HOST_BUILD_TYPE_SETTING):
- self.dut.set_build_options({SW[7:]: "y"})
- else:
- cmd = "sed -i -e 's/{0}=n$/{0}=y/' {1}/config/common_base".format(
- SW, self.target_dir
- )
- self.d_a_con(cmd)
# re-compile dpdk source code
self.dut.build_install_dpdk(self.target)