This skips in the wrong cases, it skips when the module is available rather than when it is not.
Signed-off-by: Dylan Baker <[email protected]> --- unittests/utils/nose.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unittests/utils/nose.py b/unittests/utils/nose.py index 5852718..02a7bf5 100644 --- a/unittests/utils/nose.py +++ b/unittests/utils/nose.py @@ -312,10 +312,10 @@ class Skip(object): stdout=null, stderr=null) except OSError as e: if e.errno == errno.ENOENT: - return False + return True except subprocess.CalledProcessError as e: pass - return True + return False return cls( check(), 'Test requires that binary {} is available'.format(name)) -- 2.9.0 _______________________________________________ Piglit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/piglit
