mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-26 13:10:35 +00:00
Test case for copycds, with a bogus disc (#5236)
This commit is contained in:
BIN
xCAT-test/autotest/testcase/copycds/BOGUS-RHEL-7.0-ppc64.iso
Normal file
BIN
xCAT-test/autotest/testcase/copycds/BOGUS-RHEL-7.0-ppc64.iso
Normal file
Binary file not shown.
5
xCAT-test/autotest/testcase/copycds/cases1
Normal file
5
xCAT-test/autotest/testcase/copycds/cases1
Normal 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
|
18
xCAT-test/autotest/testcase/copycds/copycds_bogus_disc
Executable file
18
xCAT-test/autotest/testcase/copycds/copycds_bogus_disc
Executable 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}"
|
Reference in New Issue
Block a user