dvp/qvm-usb: changed order of diff arguments in all test scripts, for clearer output

This commit is contained in:
Alexandre Bezroutchko 2012-10-07 22:11:51 +02:00
parent 5b34058ebe
commit 827b71acfa
3 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ tmpf=`mktemp`
echo 'qvm-block -l'
qvm-block -l > $tmpf
cat <<'END' | diff -u $tmpf -
cat <<'END' | diff -u - $tmpf
netvm:sda STORAGE_DEVICE () 0 B
dom0:sdb1 Cruzer () 3 GiB
dom0:sdb Cruzer () 3 GiB
@ -20,7 +20,7 @@ qvm-block -a work dom0:sdb | diff -u /dev/null -
echo 'qvm-block -l'
qvm-block -l > $tmpf
cat <<'END' | diff -u $tmpf -
cat <<'END' | diff -u - $tmpf
netvm:sda STORAGE_DEVICE () 0 B
dom0:sdb1 Cruzer () 3 GiB
dom0:sdb Cruzer () 3 GiB (attached to 'work' as 'xvdi')
@ -30,7 +30,7 @@ END
echo 'qvm-run work fdisk'
qvm-run -qp work 'su - root -c "fdisk -l /dev/xvdi"' > $tmpf
cat <<'END' | diff -u $tmpf -
cat <<'END' | diff -u - $tmpf
Disk /dev/xvdi: 4022 MB, 4022337024 bytes
124 heads, 62 sectors/track, 1021 cylinders, total 7856127 sectors

View File

@ -4,7 +4,7 @@ tmpf=`mktemp`
sudo xenstore-ls -f qubes-usb-devices | sort > $tmpf
cat << 'END' | diff -u $tmpf -
cat << 'END' | diff -u - $tmpf
qubes-usb-devices/045e_0745 = ""
qubes-usb-devices/045e_0745/desc = "045e_0745 Microsoft_Microsoft\xc2\xae_Nano_Transceiver_v1.0"
qubes-usb-devices/046a_0021 = ""

View File

@ -4,7 +4,7 @@ tmpf=`mktemp`
sudo xenstore-ls -f qubes-usb-devices | sort > $tmpf
cat << 'END' | diff -u $tmpf -
cat << 'END' | diff -u - $tmpf
qubes-usb-devices/045e_0745 = ""
qubes-usb-devices/045e_0745/desc = "045e_0745 Microsoft_Microsoft\xc2\xae_Nano_Transceiver_v1.0"
qubes-usb-devices/046a_0021 = ""