fish: Fix incorrect path passed to perror.
[libguestfs.git] / tools / test-virt-tar.sh
1 #!/bin/bash -
2
3 export LANG=C
4 set -e
5
6 # Read out the test directory using virt-tar.
7 ./virt-tar -x ../images/fedora.img /bin test.tar
8
9 if [ "$(tar tf test.tar)" != "./
10 ./ls
11 ./test1
12 ./test2
13 ./test3
14 ./test4
15 ./test5
16 ./test6
17 ./test7" ]; then
18     echo "$0: error: unexpected output in tarball from virt-tar"
19     exit 1
20 fi
21
22 rm test.tar