From f2c0727bcf16e2997b05b334089a70a4bd71ad27 Mon Sep 17 00:00:00 2001 From: robin2008 Date: Mon, 25 Jun 2018 22:18:04 +0800 Subject: [PATCH] backup/recover the osimage for node in nodeset_secureroot --- xCAT-test/autotest/testcase/nodeset/cases0 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT-test/autotest/testcase/nodeset/cases0 b/xCAT-test/autotest/testcase/nodeset/cases0 index 62d53b4e4..ae13c016f 100644 --- a/xCAT-test/autotest/testcase/nodeset/cases0 +++ b/xCAT-test/autotest/testcase/nodeset/cases0 @@ -479,9 +479,15 @@ os: rhels description: Test nodeset could generate right installation files when site.secureroot=1 label: others,security cmd: chdef -t site secureroot=1 -cmd: nodeset $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute +cmd: myimage=__GETNODEATTR($$CN,provmethod)__; osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute; cn=$$CN +test -f /install/autoinst/$cn && mv -f /install/autoinst/$cn /install/autoinst/$cn.secureroot +nodeset $cn osimage=$osimage +myresult=$? +chdef $cn provmethod=$myimage +test $myresult -eq 0 check:rc==0 cmd: cat /install/autoinst/$$CN | grep '^rootpw --iscrypted \*' > /dev/null check:rc==0 cmd: chdef -t site secureroot= +cmd: test -f /install/autoinst/$$CN.secureroot && mv -f /install/autoinst/$$CN.secureroot /install/autoinst/$$CN end