123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- AT_SETUP([label with non-create option])
- AT_KEYWORDS([label label04])
- AT_TAR_CHECK([
- exec <&-
- genfile --file file
- decho "# Create volume"
- tar -c -f archive --label='New volume' file
- decho "# Update: wrong label"
- tar -rf archive --label='My volume' file; echo $?
- decho "# Update: right label"
- tar -rf archive --label='New volume' file
- ],
- [0],
- [
- 2
- ],
- [
- tar: Volume `New volume' does not match `My volume'
- tar: Error is not recoverable: exiting now
- ],[],[],[gnu,oldgnu,posix])
- AT_CLEANUP
|