From: Sam Hague Date: Sun, 16 Sep 2018 01:00:45 +0000 (-0400) Subject: replace () with _ X-Git-Tag: pre-potassium~553 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=integration%2Ftest.git;a=commitdiff_plain;h=0bb2d7b9d9900c57f9729478ae6ac33245d59ad0 replace () with _ The below error is coming out because the ()'s are not valid in the python shell call. The path is composed of the test name and some tests have ()'s in the name. 18:39:17 Ping Vm Instance1 In net_2 From net_1 (vxlan to vlan) :: Check rea... sh: -c: line 0: syntax error near unexpected token `(' 18:39:23 sh: -c: line 0: `odltools show eos -i 10.30.170.33 -t 8181 -u admin -w admin --path /tmp/02_l3_Ping_Vm_Instance1_In_net_2_From_net_1_(vxlan_to_vlan) 2>&1' 18:39:23 sh: -c: line 0: syntax error near unexpected token `(' 18:39:23 sh: -c: line 0: `odltools analyze tunnels -i 10.30.170.33 -t 8181 -u admin -w admin --path /tmp/02_l3_Ping_Vm_Instance1_In_net_2_From_net_1_(vxlan_to_vlan) 2>&1' Change-Id: I82b28a713f0c007af74cdcba23a16a758e805929 Signed-off-by: Sam Hague --- diff --git a/csit/libraries/ODLTools.robot b/csit/libraries/ODLTools.robot index 51188e19a4..ebd26d1512 100644 --- a/csit/libraries/ODLTools.robot +++ b/csit/libraries/ODLTools.robot @@ -49,5 +49,5 @@ Get All Get Path [Arguments] ${test_name}=${SUITE_NAME}.${TEST_NAME} [Documentation] Get odltools path for a given test case - ${tmpdir} = BuiltIn.Evaluate """${test_name}""".replace(" ","_").replace("/","_").replace(".","_") + ${tmpdir} = BuiltIn.Evaluate """${test_name}""".replace(" ","_").replace("/","_").replace(".","_").replace("(","_").replace(")","_") [Return] /tmp/${tmpdir}