0882a463ed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10022 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
34 lines
593 B
Plaintext
34 lines
593 B
Plaintext
start:tabrestore_null
|
|
description:tabrestore without any flag
|
|
cmd:tabrestore
|
|
check:rc!=0
|
|
check:output=~Usage
|
|
end
|
|
|
|
start:tabrestore_table
|
|
cmd:tabdump site > /tmp/site.csv
|
|
check:rc==0
|
|
cmd:chtab key=xcatdport site.value=3333
|
|
check:rc==0
|
|
cmd:tabrestore /tmp/site.csv
|
|
check:rc==0
|
|
cmd:tabdump site > /tmp/site1.csv
|
|
check:rc==0
|
|
cmd:diff /tmp/site1.csv /tmp/site.csv
|
|
check:rc==0
|
|
cmd:rm -f /tmp/site.csv /tmp/site1.csv
|
|
end
|
|
|
|
start:tabrestore_h
|
|
cmd:tabrestore -h
|
|
check:output=~Usage
|
|
end
|
|
|
|
start:tabrestore_err
|
|
description:tabrestore wrong.csv
|
|
cmd:tabrestore wrong.csv
|
|
check:rc!=0
|
|
check:output=~Error
|
|
end
|
|
|