]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: fix incorrect status handling by virsh-self-test
authorErik Skultety <eskultet@redhat.com>
Thu, 8 Sep 2016 13:28:07 +0000 (15:28 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 13 Sep 2016 13:19:39 +0000 (15:19 +0200)
commit419bc8cf65ff38d9074224b3539696ee7d17d3d4
treedd08eef8ebe9a67813e52e933c76d1efbc4713de
parentf428ff8ad4c08891c205b896308c75c635b16741
tests: fix incorrect status handling by virsh-self-test

The virsh-self-test script compared the test's return code with 1 and only if
the return code matched this value then the test was marked as failed. Problem
is that SIGSEGV returns 139 (or 11 to be precise, since shell reserves the MSB
for abnormal exit signaling) which passes the check just fine and test then
appears as successful which it most certainly wasn't.
Therefore, flip the logic to compare against 0 instead and every other result
will be treated as a failed test case.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
tests/virsh-self-test