mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
The files could be listed in any order, resulting in the test failing for no reason. Sort the output of tar.
23 lines
335 B
Bash
Executable File
23 lines
335 B
Bash
Executable File
#!/bin/bash -
|
|
|
|
export LANG=C
|
|
set -e
|
|
|
|
# Read out the test directory using virt-tar.
|
|
./virt-tar -x ../images/fedora.img /bin test.tar
|
|
|
|
if [ "$(tar tf test.tar | sort)" != "./
|
|
./ls
|
|
./test1
|
|
./test2
|
|
./test3
|
|
./test4
|
|
./test5
|
|
./test6
|
|
./test7" ]; then
|
|
echo "$0: error: unexpected output in tarball from virt-tar"
|
|
exit 1
|
|
fi
|
|
|
|
rm test.tar
|