diff --git a/xCAT-test/autotest/testcase/genesis/cases0 b/xCAT-test/autotest/testcase/genesis/cases0 index e2e7e7ca8..066eac4e8 100644 --- a/xCAT-test/autotest/testcase/genesis/cases0 +++ b/xCAT-test/autotest/testcase/genesis/cases0 @@ -2,14 +2,13 @@ start:nodeset_shell_lzma os:rhels8 label:others,genesis description: verify could log in genesis shell lzma compression -cmd:if [[ "__GETNODEATTR($$CN,os)__" =~ "rhel" ]]; then yum install -y https://rpmfind.net/linux/centos/8-stream/PowerTools/__GETNODEATTR($$CN,arch)__/os/Packages/xz-lzma-compat-5.2.4-3.el8.__GETNODEATTR($$CN,arch)__.rpm; elif rpm -q xz; then yum download https://rpmfind.net/linux/centos/8-stream/PowerTools/__GETNODEATTR($$CN,arch)__/os/Packages/xz-lzma-compat-5.2.4-3.el8.__GETNODEATTR($$CN,arch)__.rpm; rpm -ivh --nodeps xz-lzma-compat-5.2.4-3.el8.__GETNODEATTR($$CN,arch)__.rpm; fi #Generate genesis network boot with lzma compression cmd:mknb __GETNODEATTR($$CN,arch)__ check:rc==0 cmd:nodeset $$CN shell check:rc==0 cmd:ls -l /tftpboot/xcat/genesis.fs.*.lzma -check:output=~genesis +check:rc==0 cmd:find /tftpboot -type f -name $$CN | xargs grep "lzma" check:output=~genesis cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -g @@ -19,8 +18,7 @@ check:rc==0 cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -c check:rc==0 cmd:cat /tmp/genesistestlog/* -#Remove lzma compression RPM, cleanup and generate default gz genesis network boot -cmd:yum remove -y xz-lzma-compat +#Cleanup and generate the default gz genesis network boot cmd:rm -f /tftpboot/xcat/genesis.fs.*.lzma cmd:mknb __GETNODEATTR($$CN,arch)__ end