From 5428d0be9aa62ea3f93b8fdeaa95d1597bf60f49 Mon Sep 17 00:00:00 2001 From: Victor Hu <whowutwut@gmail.com> Date: Mon, 3 Jun 2019 11:53:08 -0400 Subject: [PATCH] We are not taking the return code from runcmd, so don't echo it --- xCAT-test/autotest/testcase/genesis/test.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xCAT-test/autotest/testcase/genesis/test.sh b/xCAT-test/autotest/testcase/genesis/test.sh index 35ec70c57..2f41273ed 100755 --- a/xCAT-test/autotest/testcase/genesis/test.sh +++ b/xCAT-test/autotest/testcase/genesis/test.sh @@ -2,14 +2,12 @@ PATH="/opt/xcat/bin:/opt/xcat/sbin:/opt/xcat/share/xcat/tools:/usr/sbin:/usr/bin:/sbin:/bin:/root/bin" export PATH function runcmd(){ - echo "Run command $*" + echo "Run command $* ..." result=`$*` if [[ $? -eq 0 ]];then - echo $result; - echo -e "Run command $*....[Succeed]\n"; + echo -e "Run command $*... [Succeed]\n"; return 0; else - echo $result; echo -e "Run command $*... [Failed]\n"; return 1; fi