On 03/02/2015 06:47, lvroyce(a)linux.vnet.ibm.com wrote:
From: Royce Lv <lvroyce(a)linux.vnet.ibm.com>
Feature tests depend on running kimchi server should not be used
in model tests, while coincidently, command
"qemu-io -r
http://localhost:8080/images/icon-fedora.png -c 'read -v 0
512'"
return code is 0 so we cannot count on the return code.
This patch forces module usage without running kimchi server to return false,
and fixes testcase accordingly.
What is the error you are getting when running the tests with the
current upstream code?
Those issues seem duplicated for me.
Royce Lv (2):
Avoid using server dependent feature tests when server not running
Fix wrong usage of feature tests
src/kimchi/model/featuretests.py | 5 ++++-
src/kimchi/utils.py | 8 ++++++++
tests/test_model.py | 16 +++++++---------
3 files changed, 19 insertions(+), 10 deletions(-)