correct build iso test case to use awk
[ta/cloudtaf.git] / testcases / post-install / post_install.robot
index bb1064a..bd40cdb 100644 (file)
@@ -29,7 +29,7 @@ Testing Deployment
     Should contain    ${out}    ${search}
 
 Looking up LF Jenkins successful build iso number
-    ${command}=    set variable     rpm -qa |grep product-manifest | sed -E 's/^[^-]*-[^-]*-([^-]*)-.*$/\1/'
+    ${command}=    set variable     rpm -qa | grep product | awk -F '-' '{sub(/-.*$/, "", $3); print $3}'
     ${out}=    ssh.Execute Command    ${command}    controller-1
     log    ${out}