diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2009-01-20 12:03:40 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2009-01-20 12:03:40 +0000 |
commit | 0466ff28f23f4c430906efd5859f87672cf08782 (patch) | |
tree | 748ea1aa76c2f98bcf467afe72db4a242a6ae26d /tests/undefine | |
parent | ead04dcbe8d71b234a13d7e613ffab3195dc6a12 (diff) | |
download | libvirt-0466ff28f23f4c430906efd5859f87672cf08782.tar.gz |
Fix actual vs expected data comparison order to get correct diff +++/--- output
Diffstat (limited to 'tests/undefine')
-rwxr-xr-x | tests/undefine | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/undefine b/tests/undefine index d7452418e2..48e835681e 100755 --- a/tests/undefine +++ b/tests/undefine @@ -9,7 +9,7 @@ # (at your option) any later version. # This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of +# but WITHEXP ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. @@ -32,7 +32,7 @@ cat <<\EOF > exp || fail=1 libvir: Test error : internal error Domain 'test' is still running error: Failed to undefine domain test EOF -compare out exp || fail=1 +compare exp out || fail=1 # A different diagnostic when specifying a domain ID virsh -q -c test:///default undefine 1 > out 2>&1 @@ -41,7 +41,7 @@ cat <<\EOF > exp || fail=1 error: a running domain like 1 cannot be undefined; to undefine, first shutdown then undefine using its name or UUID EOF -compare out exp || fail=1 +compare exp out || fail=1 # Succeed, now: first shut down, then undefine, both via name. virsh -q -c test:///default 'shutdown test; undefine test' > out 2>&1 @@ -50,6 +50,6 @@ cat <<\EOF > exp || fail=1 Domain test is being shutdown Domain test has been undefined EOF -compare out exp || fail=1 +compare exp out || fail=1 (exit $fail); exit $fail |