From 48946b841066c0a74fc8818c2b42dea67cd5fb6e Mon Sep 17 00:00:00 2001 From: kinkwant Date: Fri, 13 Sep 2019 16:26:14 +0300 Subject: [PATCH] correct build iso test case to use awk Change-Id: I2c845ea500d528808a9c3599d3d892e5d6cdd53e Signed-off-by: kinkwant --- testcases/post-install/post_install.robot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/post-install/post_install.robot b/testcases/post-install/post_install.robot index bb1064a..bd40cdb 100644 --- a/testcases/post-install/post_install.robot +++ b/testcases/post-install/post_install.robot @@ -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} -- 2.16.6