X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=regressions%2Ftest-guestfish-d.sh;h=7fc5251863851ac47f3ca086f3a8f350c0242bfc;hp=be2074823f52ad391f479e216991efb4b06a9a92;hb=d8346d5d6428c7293d1ddf58e4f9ec4b7de25380;hpb=0c1d3c02a8147617ee0646e37d011235abdd2c22 diff --git a/regressions/test-guestfish-d.sh b/regressions/test-guestfish-d.sh index be20748..7fc5251 100755 --- a/regressions/test-guestfish-d.sh +++ b/regressions/test-guestfish-d.sh @@ -56,11 +56,11 @@ cat > test.xml < EOF -../fish/guestfish -c "test://$cwd/test.xml" --ro -d guest -x \ - test.out 2>&1 -grep -sq '^add_drive.*test1.img.*readonly:true' test.out -! grep -sq '^add_drive.*test1.img.*format' test.out -grep -sq '^add_drive.*test2.img.*readonly:true.*format:raw' test.out -grep -sq '^add_drive.*test3.img.*readonly:true.*format:qcow2' test.out +../fish/guestfish -c "test://$cwd/test.xml" --ro -d guest \ + debug-cmdline test.out +grep -sq "test1.img.*snapshot=on" test.out +! grep -sq "test1.img.*format" test.out +grep -sq "test2.img.*snapshot=on.*format=raw" test.out +grep -sq "test3.img.*snapshot=on.*format=qcow2" test.out rm -f test1.img test2.img test3.img test.xml test.out