From af97ed3128722c9a94aecfd61609e12f13a49952 Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Mon, 26 Apr 2021 15:42:38 -0400 Subject: [PATCH] Improve verification of prsync command in testcases --- .../reg_linux_statelite_installation_hierarchy_by_nfs | 5 +++++ .../reg_linux_statelite_installation_hierarchy_by_ramdisk | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/xCAT-test/autotest/testcase/installation/reg_linux_statelite_installation_hierarchy_by_nfs b/xCAT-test/autotest/testcase/installation/reg_linux_statelite_installation_hierarchy_by_nfs index 64e3fca66..fb936f761 100644 --- a/xCAT-test/autotest/testcase/installation/reg_linux_statelite_installation_hierarchy_by_nfs +++ b/xCAT-test/autotest/testcase/installation/reg_linux_statelite_installation_hierarchy_by_nfs @@ -72,8 +72,13 @@ cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compu check:rc==0 cmd:liteimg __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute check:rc==0 +#Before doing prsync of /install to the service node, check if there is enough space there +cmd:du -sh /install +cmd:xdsh $$SN du -H cmd:prsync /install $$SN:/ check:rc==0 +check:output=~$$SN: done +check:output!=write failed cmd:/opt/xcat/share/xcat/tools/autotest/testcase/commoncmd/retry_install.sh $$CN __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute check:rc==0 diff --git a/xCAT-test/autotest/testcase/installation/reg_linux_statelite_installation_hierarchy_by_ramdisk b/xCAT-test/autotest/testcase/installation/reg_linux_statelite_installation_hierarchy_by_ramdisk index 6337a694f..99c460198 100644 --- a/xCAT-test/autotest/testcase/installation/reg_linux_statelite_installation_hierarchy_by_ramdisk +++ b/xCAT-test/autotest/testcase/installation/reg_linux_statelite_installation_hierarchy_by_ramdisk @@ -65,9 +65,13 @@ cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compu check:rc==0 cmd:liteimg __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute check:rc==0 +#Before doing prsync of /install to the service node, check if there is enough space there +cmd:du -sh /install +cmd:xdsh $$SN du -H cmd:prsync /install $$SN:/ check:rc==0 - +check:output=~$$SN: done +check:output!=write failed cmd:/opt/xcat/share/xcat/tools/autotest/testcase/commoncmd/retry_install.sh $$CN __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute check:rc==0