aboutsummaryrefslogtreecommitdiffstats
path: root/docs/gettingstarted/installing/centos.rst
diff options
context:
space:
mode:
authorPrashant Maheshwari <pmahesh2@cisco.com>2019-07-31 21:37:33 +0530
committerNeale Ranns <nranns@cisco.com>2019-08-06 08:13:33 +0000
commit3bcf1a940a3699ba3cda6aaecd21b14573709adc (patch)
tree1a3f11ffa5690c987b3503c57068d0519f5f70bb /docs/gettingstarted/installing/centos.rst
parentec757593859bd8c16839ea8a81a2ef4eb8b29539 (diff)
ethernet: change to mark the CFI bit in the L2 header.
Type: fix Fixes: 039cbfe2 Signed-off-by: Prashant Maheshwari <pmahesh2@cisco.com> Change-Id: Idca91c73758824688dd6ce61df994be66753d838
Diffstat (limited to 'docs/gettingstarted/installing/centos.rst')
0 files changed, 0 insertions, 0 deletions
b; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#!/router/bin/python
from .stl_general_test import CStlGeneral_Test, CTRexScenario
from misc_methods import run_command
from nose.plugins.attrib import attr


@attr('client_package')
class CTRexClientPKG_Test(CStlGeneral_Test):
    """This class tests TRex client package"""

    def setUp(self):
        CStlGeneral_Test.setUp(self)
        self.unzip_client_package()

    def run_client_package_stf_example(self, python_version):
        commands = [
                    'cd %s' % CTRexScenario.scripts_path,
                    'source find_python.sh --%s' % python_version,
                    'which $PYTHON',
                    'cd trex_client/stl/examples',
                    '$PYTHON stl_imix.py -s %s' % self.configuration.trex['trex_name'],
                   ]
        return_code, _, stderr = run_command("bash -ce '%s'" % '; '.join(commands))
        if return_code:
            self.fail('Error in running stf_example using %s: %s' % (python_version, stderr))

    def test_client_python2(self):
        self.run_client_package_stf_example(python_version = 'python2')

    def test_client_python3(self):
        self.run_client_package_stf_example(python_version = 'python3')