2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-26 21:20:29 +00:00

Test case for copycds, with a bogus disc (#5236)

This commit is contained in:
Gᴏɴɢ Jie
2018-05-29 15:21:37 +08:00
committed by yangsong
parent eb9c0c6d93
commit 550ef1a74a
3 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
start:copycds_bogus_disc
description: Test cases for the copycds with a bogus disc
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/copycds/copycds_bogus_disc
check:rc==0
end

View File

@@ -0,0 +1,18 @@
#!/bin/bash
set -x
function cleanup()
{
rm -rf /install/rhels7/ppc64
rmdef -t osimage rhels7-ppc64-install-compute
rmdef -t osimage rhels7-ppc64-install-service
rmdef -t osimage rhels7-ppc64-netboot-compute
rmdef -t osimage rhels7-ppc64-statelite-compute
}
trap cleanup EXIT
ISO_FILE="/opt/xcat/share/xcat/tools/autotest/testcase/copycds/BOGUS-RHEL-7.0-ppc64.iso"
copycds "${ISO_FILE}"