correct build iso test case to use awk 79/1579/2
authorkinkwant <kinkwan.tsui@nokia.com>
Fri, 13 Sep 2019 13:26:14 +0000 (16:26 +0300)
committerkinkwan tsui <kinkwan.tsui@nokia.com>
Fri, 13 Sep 2019 13:35:53 +0000 (13:35 +0000)
Change-Id: I2c845ea500d528808a9c3599d3d892e5d6cdd53e
Signed-off-by: kinkwant <kinkwan.tsui@nokia.com>
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}