Displaying 2 results from an estimated 2 matches for "xwin7".
Did you mean:
win7
2019 May 16
2
[PATCH] v2v: -o json: add a simple test for it
...tname
+
+# Test the disk was created.
+test -f $d/$guestname-sda
+
+# Test the JSON.
+test x$(jq -r '.name' $json) = xwindows
+test x$(jq -r '.inspect.type' $json) = xwindows
+test x$(jq -r '.inspect.distro' $json) = xwindows
+test x$(jq -r '.inspect.osinfo' $json) = xwin7
+test $(jq -r '.disks | length' $json) -eq 1
+test $(jq -r '.nics | length' $json) -eq 1
+test $(jq -r '.removables | length' $json) -eq 0
+
+# Clean up.
+rm -r $d
--
2.21.0
2019 May 16
0
Re: [PATCH] v2v: -o json: add a simple test for it
...d.
> +test -f $d/$guestname-sda
> +
> +# Test the JSON.
> +test x$(jq -r '.name' $json) = xwindows
> +test x$(jq -r '.inspect.type' $json) = xwindows
> +test x$(jq -r '.inspect.distro' $json) = xwindows
> +test x$(jq -r '.inspect.osinfo' $json) = xwin7
> +test $(jq -r '.disks | length' $json) -eq 1
Consider also the following line at this point:
test $(jq -r '.disks[0].file' $json) = $(realpath $d/$guestname-sda)
(forgot to save the editor, will not send v2 just for this)
> +test $(jq -r '.nics | length' $json) -e...