mirror of
https://github.com/ceph/ceph
synced 2024-12-18 09:25:49 +00:00
qa/workunits/fs/misc: Add a workunit for tar kernel Documents
the test fails if some files were changed while being archived Signed-off-by: Yan, Zheng <zyan@redhat.com>
This commit is contained in:
parent
bde03c7cf4
commit
8a6f1f7fba
26
qa/workunits/fs/misc/kernel_untar_tar.sh
Executable file
26
qa/workunits/fs/misc/kernel_untar_tar.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
# check if there is file changed while being archived
|
||||
|
||||
set -e
|
||||
|
||||
KERNEL=linux-4.0.5
|
||||
|
||||
wget -q http://download.ceph.com/qa/$KERNEL.tar.xz
|
||||
|
||||
mkdir untar_tar
|
||||
cd untar_tar
|
||||
|
||||
tar Jxvf ../$KERNEL.tar.xz $KERNEL/Documentation/
|
||||
tar cf doc.tar $KERNEL
|
||||
|
||||
tar xf doc.tar
|
||||
sync
|
||||
tar c $KERNEL >/dev/null
|
||||
|
||||
rm -rf $KERNEL
|
||||
|
||||
tar xf doc.tar
|
||||
sync
|
||||
tar c $KERNEL >/dev/null
|
||||
|
||||
echo Ok
|
Loading…
Reference in New Issue
Block a user