diff options
-rw-r--r-- | scripts/automation/regression/functional_tests/scapy_pkt_builder_test.py | 3 | ||||
-rwxr-xr-x | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/automation/regression/functional_tests/scapy_pkt_builder_test.py b/scripts/automation/regression/functional_tests/scapy_pkt_builder_test.py index a3fcd091..5d34e5df 100644 --- a/scripts/automation/regression/functional_tests/scapy_pkt_builder_test.py +++ b/scripts/automation/regression/functional_tests/scapy_pkt_builder_test.py @@ -238,7 +238,8 @@ class CTRexPktBuilderSanitySCapy_Test(pkt_bld_general_test.CGeneralPktBld_Test): d= pkt_builder.get_vm_data() except CTRexPacketBuildException as e: - assert_equal(str(e), "[errcode:-11] 'variable my_valn_err does not exists '") + error=str(e) + assert_equal(error.find("[errcode:-11]"),0); def test_simple_tuple_gen(self): vm = STLScVmRaw( [ STLVmTupleGen(name="tuple"), # define tuple gen diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py index 78f51ec6..aeeddc49 100755 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py @@ -112,7 +112,7 @@ class STLTXCont(STLTXMode): super(STLTXCont, self).__init__(**kwargs) - self.fields['type'] = 'Continuous' + self.fields['type'] = 'continuous' @staticmethod def __str__ (): |